Skip to content

Commit cf38c6f

Browse files
committed
mark rope constructors explicit
1 parent f22bd5d commit cf38c6f

File tree

1 file changed

+3
-3
lines changed
  • src/string19.lib/string19

1 file changed

+3
-3
lines changed

src/string19.lib/string19/Rope.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ template<class... Ts> struct Rope;
1212
template<class... Ts> requires(sizeof...(Ts) > 0) struct Rope<Ts...> {
1313
Tuple<Ts...> parts;
1414
constexpr Rope() = default;
15-
constexpr Rope(const Ts&... ts) : parts(ts...) {}
16-
constexpr Rope(Ts&&... ts) : parts(std::move(ts)...) {}
17-
constexpr bool operator==(const Rope&) const = default;
15+
constexpr explicit Rope(const Ts&... ts) : parts(ts...) {}
16+
constexpr explicit Rope(Ts&&... ts) : parts(std::move(ts)...) {}
17+
constexpr auto operator==(const Rope&) const -> bool = default;
1818
};
1919

2020
template<> struct Rope<> {};

0 commit comments

Comments
 (0)