mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-04 03:14:29 +02:00
Fix Clang C++11 error
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user