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

GCC 4.6 is_nothrow_move_assignable #114

Open
Kojoley opened this issue Feb 23, 2019 · 0 comments
Open

GCC 4.6 is_nothrow_move_assignable #114

Kojoley opened this issue Feb 23, 2019 · 0 comments

Comments

@Kojoley
Copy link
Contributor

Kojoley commented Feb 23, 2019

I know that C++11 on GCC < 4.7 is awful, but true is not a good default if there is not way to determine noexceptness.

#include <boost/type_traits/is_nothrow_move_assignable.hpp>

struct foo
{
    foo& operator=(foo&&) noexcept(false) { throw 0; }
};

static_assert(!boost::is_nothrow_move_assignable<foo>::value, "");

https://godbolt.org/z/WT3g9q

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

No branches or pull requests

1 participant