Fix C++11 mode in Clang

This commit is contained in:
Simon Brand
2019-03-11 13:40:31 +00:00
parent 34bc5a0af9
commit 1261754737

View File

@@ -765,7 +765,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
} }
#endif #endif
constexpr void destroy_val() { TL_EXPECTED_11_CONSTEXPR void destroy_val() {
get().~T(); get().~T();
} }
}; };
@@ -820,7 +820,7 @@ struct expected_operations_base<void, E> : expected_storage_base<void, E> {
} }
#endif #endif
constexpr void destroy_val() { TL_EXPECTED_11_CONSTEXPR void destroy_val() {
//no-op //no-op
} }
}; };