Skip to content

Commit 234d209

Browse files
authored
Fix MSVC compiler errors.
1 parent c542858 commit 234d209

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/flags/flags.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace flags {
1515

1616

1717
constexpr struct empty_t {
18-
constexpr empty_t() noexcept {}
18+
constexpr empty_t() noexcept = default;
1919
} empty;
2020

2121

@@ -164,11 +164,11 @@ template <class E> class flags {
164164
}
165165

166166

167-
constexpr explicit operator std::bitset<bit_size()>() const noexcept {
167+
constexpr explicit operator std::bitset<flags<E>::bit_size()>() const noexcept {
168168
return to_bitset();
169169
}
170170

171-
constexpr std::bitset<bit_size()> to_bitset() const noexcept {
171+
constexpr std::bitset<flags<E>::bit_size()> to_bitset() const noexcept {
172172
return {val_};
173173
}
174174

0 commit comments

Comments
 (0)