Skip to content

Commit 6df748a

Browse files
authored
Merge pull request #9 from egorpugin/patch-1
Fix MSVC compiler errors.
2 parents c542858 + 234d209 commit 6df748a

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)