[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppNoncopyable
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppNoncopyable
(C++) boost::noncopyable
Boost C++ library class that disables copying when inherited from.struct MyClass : public boost::noncopyable { //Something }; int main() { MyClass c1; MyClass c2 = c1; //ERROR: Copy constructor of MyClass is not accessible }
- include <boost/noncopyable.hpp>
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
