Taking the address of a temporary object of type 'Freenect Device'
kyeshmz opened this issue · comments
Error comes up as
Taking the address of a temporary objet of type 'Freenect2Device'::Color Camera Params
in Proctnect.h
Also shows off a yellow flag in the same two places.
libfreenect2::Freenect2Device::ColorCameraParams* getColorCameraParams() {
if (!dev) { return nullptr; }
return &dev->getColorCameraParams(); //here
}
libfreenect2::Freenect2Device::IrCameraParams* getIrCameraParams() {
if (!dev) { return nullptr; }
return &dev->getIrCameraParams(); //here
}
Xcode is ver 8.1
Openframeworks testing on stable, and 0.9.2.
macOS is Sierra.
Using macbook air 2014 ss release.
I don't see the superspeed come up, so maybe this is the problem, but any help?