Skip to content

Commit

Permalink
Merge pull request #9 from egorpugin/patch-1
Browse files Browse the repository at this point in the history
Fix MSVC compiler errors.
  • Loading branch information
grisumbras authored Mar 5, 2018
2 parents c542858 + 234d209 commit 6df748a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/flags/flags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace flags {


constexpr struct empty_t {
constexpr empty_t() noexcept {}
constexpr empty_t() noexcept = default;
} empty;


Expand Down Expand Up @@ -164,11 +164,11 @@ template <class E> class flags {
}


constexpr explicit operator std::bitset<bit_size()>() const noexcept {
constexpr explicit operator std::bitset<flags<E>::bit_size()>() const noexcept {
return to_bitset();
}

constexpr std::bitset<bit_size()> to_bitset() const noexcept {
constexpr std::bitset<flags<E>::bit_size()> to_bitset() const noexcept {
return {val_};
}

Expand Down

0 comments on commit 6df748a

Please sign in to comment.