Misstakes in Tutorial for C++


#1

I discover mistake in tutorial for C++ ( https://www.panda3d.org/manual/index.php?title=Starting_Panda3D&language=cxx )
there is
// Add our task do the main loop, then rest in peace. taskMgr->add(new GenericAsyncTask("Spins the camera", &SpinCameraTask, (void*) NULL));

but the (void *) can’t be in arguments because it throw error.
this is worked for me
taskMgr->add(new GenericAsyncTask("Spins the camera", &spinCameraTask, NULL));


#2

Thanks! I’ve changed it to use nullptr, which is the recommended null pointer constant in C++11.