forked from TartanLlama/expected
Fix C++11 mode in Clang
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user