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

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.

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.

2 Likes