Explicitly defaulted and deleted constructor: is there any similar
functionality available in VS2012?
In VS2012, the "Explicitly defaulted and deleted special member functions"
feature
(http://en.wikipedia.org/wiki/C++0x#Explicitly_defaulted_and_deleted_special_member_functions
, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm) isn't
yet available
(http://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx ). Is there
any workaround to use such functionality, even if very very verbose? In
practice, can I translate this
struct NonCopyable {
NonCopyable() = default;
NonCopyable(const NonCopyable&) = delete;
NonCopyable & operator=(const NonCopyable&) = delete;
};
to something with the same functionality, but without using default and
delete? How?
No comments:
Post a Comment