I have been using a Boost NonCopyable library in Microsoft Visual Studio 2013.
What I have is the following error message:
Error 1 error C2280: 'boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable &)' : attempting to reference a deleted function c:\users\john\documents\visual studio 2013\projects\donttread\donttread\donttread.cpp 18 1 DontTread
Now what I want to rectify the error is to throw an exception, so that the program can compile smoothly.
Just don't use noncopyable. The reason to use that class is for that error. If you want to suppress that error than you don't want to use the noncopyable class (you want your class to be copyable).