Kinect 2 Common Bridge -- BasicApp attempting to reference a deleted function on build (VS2015)


#1

On attempting to build the BasicApp sample from the Cinder-KCB2 Blocks directory with VS2015, I get the following error:

Error C2280 'std::atomic<bool>::atomic(const std::atomic<bool> &)': attempting to reference a deleted function BasicApp ./Kinect2.cpp 745

Anyone know why this is happening or how to fix it?

Cheers.


#2

I don’t have any experience with VS, but you might need to define a copy constructor. The default one generated by the compiler calls the copy constructor for each members, but this is not allowed for std::atomic.