Skip to content

Commit 81c8a7b

Browse files
committed
Fix build on VS 2022 17.3.1
1 parent 48d25b4 commit 81c8a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/flags/flags.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ template <class E> class flags {
8686

8787
template <class FwIter>
8888
flags(FwIter b, FwIter e,
89-
typename convertible<decltype(*b)>::type = nullptr)
89+
typename convertible<decltype(*std::declval<FwIter>())>::type = nullptr)
9090
noexcept(noexcept(std::declval<flags>().insert(std::declval<FwIter>(),
9191
std::declval<FwIter>())))
9292
: val_(0)

0 commit comments

Comments
 (0)