Skip to content

Commit 734d584

Browse files
more messages
1 parent c554a25 commit 734d584

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/beman/optional26/optional.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ concept enable_assign_from_other =
287287

288288
template <class T>
289289
class optional {
290-
static_assert((!std::is_same_v<T, std::remove_cv_t<in_place_t>>) &&
291-
(!std::is_same_v<std::remove_cv_t<T>, nullopt_t>));
290+
static_assert(
291+
(!std::is_same_v<T, std::remove_cv_t<in_place_t>>)&&(!std::is_same_v<std::remove_cv_t<T>, nullopt_t>),
292+
"T must not be in_place_t or nullopt_t");
292293

293294
struct empty {};
294295
union {

0 commit comments

Comments
 (0)