Trying to run an on a project that was originally developed for 0.9.0. I’m working off of the current master branch. I cloned the repo and built using xcode, which threw the following error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1751:19: Object of type ‘cinder::signals::Connection’ cannot be assigned because its copy assignment operator is implicitly deleted
I’ve never run into this before so am at a bit of a loss as to the solution. I’ve read the other forum posts RE boost and cinder::signals, but now sure if/how my problem is related. Any advice would be appreciated.
/Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/ImGui/src/CinderImGui.cpp:1:1: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/ImGui/src/CinderImGui.cpp:1:
/Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/SketchCNC_Prefix.pch:4:11: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/SketchCNC_Prefix.pch:4:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/app/App.h:29:11: In file included from …/…/…/Cinder/include/cinder/app/App.h:29:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/app/cocoa/AppMac.h:26:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/app/cocoa/AppMac.h:26:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/app/AppBase.h:28:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/app/AppBase.h:28:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/app/Platform.h:26:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/app/Platform.h:26:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/DataSource.h:28:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/DataSource.h:28:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/Url.h:26:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/Url.h:26:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/Stream.h:27:10: In file included from /Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/…/…/…/Cinder/include/cinder/Stream.h:27:
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/Exception.h:26:10: In file included from …/…/…/Cinder/include/cinder/Exception.h:26:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:439:10: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1/string:439:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1775:19: In instantiation of function template specialization ‘std::__1::__copy<const cinder::signals::Connection *, cinder::signals::Connection *>’ requested here
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:1404:30: In instantiation of function template specialization ‘std::__1::copy<const cinder::signals::Connection *, cinder::signals::Connection *>’ requested here
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:584:10: In instantiation of function template specialization ‘std::__1::vector<cinder::signals::Connection, std::__1::allocatorcinder::signals::Connection >::assign<const cinder::signals::Connection *>’ requested here
/Users/Craig/Documents/cinder_dev/myProjects/SketchCNC/xcode/ImGui/src/CinderImGui.cpp:996:21: In instantiation of member function ‘std::__1::vector<cinder::signals::Connection, std::__1::allocatorcinder::signals::Connection >::operator=’ requested here
/Users/Craig/Documents/cinder_dev/Cinder/include/cinder/Signals.h:124:2: Copy assignment operator is implicitly deleted because ‘Connection’ has a user-declared move constructor
Using Simon’s fork of ImGui solved the problem. I’d like to try and understand a little more what was going on / what the problem is. I’ve been digging through the cinder::signals code to try and get a better idea, but any other resources would be welcomed.