Skip to content

Commit a8e2fb8

Browse files
committed
fix constexps struct with user defined constructor
1 parent 9d1ce32 commit a8e2fb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/flags/flags.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
namespace flags {
1515

1616

17-
constexpr struct empty_t{} empty;
17+
constexpr struct empty_t {
18+
constexpr empty_t() noexcept {}
19+
} empty;
1820

1921

2022
template <class E> struct flags {

0 commit comments

Comments
 (0)