Skip to content

Commit

Permalink
Eliminate function that does not compile with MSVC 14.33.31629, perha…
Browse files Browse the repository at this point in the history
…ps because of a compiler bug. It compiles with older MSVC versions, gcc-8, and gcc-11
  • Loading branch information
Tim Crews committed Sep 3, 2022
1 parent 5b87986 commit e9a1fa3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/flags/flags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ template <class E> class flags {
flags(enum_type e, Args ... args) noexcept : flags{e, args...} {}


template <class FwIter>
flags(FwIter b, FwIter e,
typename convertible<decltype(*b)>::type = nullptr)
noexcept(noexcept(std::declval<flags>().insert(std::declval<FwIter>(),
std::declval<FwIter>())))
: val_(0)
{ insert(b, e); }


constexpr explicit operator bool() const noexcept { return val_ != 0; }

Expand Down

0 comments on commit e9a1fa3

Please sign in to comment.