bug #1573: workaround gcc 4.7 and 4.8 bug

This commit is contained in:
Gael Guennebaud 2018-08-27 10:38:20 +02:00
parent b1653d1599
commit d5ed64512f

View File

@ -290,6 +290,8 @@ template<typename PlainObjectType> void check_const_correctness(const PlainObjec
// Regression for bug 1573
struct MovableClass {
// The following line is a workaround for gcc 4.7 and 4.8 (see bug 1573 comments).
static_assert(std::is_nothrow_move_constructible<Quaternionf>::value,"");
MovableClass() = default;
MovableClass(const MovableClass&) = default;
MovableClass(MovableClass&&) noexcept = default;