Skip to content

Commit

Permalink
Add missing conditional explicit to conjugated_accessor ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoemmen committed Sep 27, 2024
1 parent 57e2fd4 commit b4d69c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/experimental/__p1673_bits/conjugated.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class conjugated_accessor {
class OtherNestedAccessor,
/* requires */ (std::is_convertible_v<NestedAccessor, const OtherNestedAccessor&>)
)
#if defined(__cpp_conditional_explicit)
explicit(!std::is_convertible_v<OtherNestedAccessor, NestedAccessor>)
#endif
constexpr conjugated_accessor(const conjugated_accessor<OtherNestedAccessor>& other)
: nested_accessor_(other.nested_accessor())
{}
Expand Down

0 comments on commit b4d69c1

Please sign in to comment.