Fix Clang C++11 error

This commit is contained in:
Simon Brand
2018-06-06 10:54:54 +01:00
parent 1eb0a2ec98
commit db183d6f04

View File

@@ -195,7 +195,7 @@ static constexpr unexpect_t unexpect{};
/// \exclude /// \exclude
namespace detail { namespace detail {
template<typename E> template<typename E>
[[noreturn]] constexpr void throw_exception(E &&e) { [[noreturn]] TL_EXPECTED_11_CONSTEXPR void throw_exception(E &&e) {
#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
throw std::forward<E>(e); throw std::forward<E>(e);
#else #else