-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added macro BOOST_NO_CXX11_DEFAULTED_MOVES #205
Conversation
|
||
struct foo { | ||
foo(foo&&) = default; | ||
foo& operator=(foo&&) = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a tab indent here?
// See http://www.boost.org/libs/config for more information. | ||
|
||
// MACRO: BOOST_NO_CXX11_DEFAULTED_MOVES | ||
// TITLE: C++0x defaulting of move constructor/assignmet unavailable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"assignment" misspelled. (Next line too.)
@@ -687,6 +687,11 @@ namespace std{ using ::type_info; } | |||
# define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS | |||
#endif | |||
|
|||
// Lack of defaulted moves is implied by the lack of either rvalue references or any dafaulted functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"defaulted" misspelled. :-)
Some compilers (GCC 4.4, 4.5, MSVC 12) have added support for defaulted functions and rvalue references, but move constructor and move assignment are not treated as special member functions yet so they cannot be defaulted.
The docs in QBK are updated but I just couldn't generate HTML out of them.