Skip to content
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

Merged
merged 3 commits into from
Jan 25, 2018

Conversation

akrzemi1
Copy link
Member

@akrzemi1 akrzemi1 commented Jan 4, 2018

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.


struct foo {
foo(foo&&) = default;
foo& operator=(foo&&) = default;
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"defaulted" misspelled. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants