Is there a class similar to http://www.boost.org/doc/libs/1_53_0/boost/noncopyable.hpp introduced by C ++ 11? I can not use the function = delete , because my compiler does not support it. I would prefer to use standard library functions, if possible, rather than enhancing or implementing my own.
= delete
No, there is no such standard class. C ++ 11 introduced = delete for this purpose, so adding a class would be unnecessarily redundant and useless.
I don't think noncopyable is useless. "= Delete" needs to be used twice (copy ctor and assignment operator), and this will print too much. if your code already has a dependency on boost, using boost :: noncopyable is preferable.