|
|
|
|
@@ -60,11 +60,11 @@ struct TestBase {
|
|
|
|
|
++alive; ++constructed; ++value_constructed;
|
|
|
|
|
}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
explicit TestBase(int x, int y) noexcept : value(y) {
|
|
|
|
|
explicit TestBase(int, int y) noexcept : value(y) {
|
|
|
|
|
++alive; ++constructed; ++value_constructed;
|
|
|
|
|
}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
TestBase(int x, int y) noexcept : value(y) {
|
|
|
|
|
TestBase(int, int y) noexcept : value(y) {
|
|
|
|
|
++alive; ++constructed; ++value_constructed;
|
|
|
|
|
}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
@@ -131,9 +131,9 @@ struct ValueBase {
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
constexpr ValueBase(int x) : value(x) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
explicit constexpr ValueBase(int x, int y) : value(y) {}
|
|
|
|
|
explicit constexpr ValueBase(int, int y) : value(y) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
constexpr ValueBase(int x, int y) : value(y) {}
|
|
|
|
|
constexpr ValueBase(int, int y) : value(y) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
explicit constexpr ValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
@@ -189,9 +189,9 @@ struct TrivialValueBase {
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
constexpr TrivialValueBase(int x) : value(x) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
explicit constexpr TrivialValueBase(int x, int y) : value(y) {}
|
|
|
|
|
explicit constexpr TrivialValueBase(int, int y) : value(y) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
constexpr TrivialValueBase(int x, int y) : value(y) {}
|
|
|
|
|
constexpr TrivialValueBase(int, int y) : value(y) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && Explicit, bool>::type = true>
|
|
|
|
|
explicit constexpr TrivialValueBase(std::initializer_list<int>& il, int y = 0) : value(il.size()) {}
|
|
|
|
|
template <bool Dummy = true, typename std::enable_if<Dummy && !Explicit, bool>::type = true>
|
|
|
|
|
|