0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Remove _is_trivial from *_operand

This commit is contained in:
Roland Bock 2021-07-13 15:16:36 +02:00
parent 93b0093fb5
commit 135db9397b
11 changed files with 0 additions and 60 deletions

View File

@ -63,11 +63,6 @@ namespace sqlpp
blob_operand& operator=(blob_operand&&) = default;
~blob_operand() = default;
bool _is_trivial() const
{
return _t.empty();
}
_value_t _t;
};

View File

@ -59,11 +59,6 @@ namespace sqlpp
boolean_operand& operator=(boolean_operand&&) = default;
~boolean_operand() = default;
bool _is_trivial() const
{
return not _t;
}
_value_t _t;
};

View File

@ -57,11 +57,6 @@ namespace sqlpp
day_point_operand& operator=(day_point_operand&&) = default;
~day_point_operand() = default;
bool _is_trivial() const
{
return std::chrono::operator==(_t, _value_t{});
}
_value_t _t;
};

View File

@ -55,11 +55,6 @@ namespace sqlpp
floating_point_operand& operator=(floating_point_operand&&) = default;
~floating_point_operand() = default;
bool _is_trivial() const
{
return _t == 0;
}
_value_t _t;
};

View File

@ -57,11 +57,6 @@ namespace sqlpp
integral_operand& operator=(integral_operand&&) = default;
~integral_operand() = default;
bool _is_trivial() const
{
return _t == 0;
}
_value_t _t;
};

View File

@ -70,11 +70,6 @@ namespace sqlpp
text_operand& operator=(text_operand&&) = default;
~text_operand() = default;
bool _is_trivial() const
{
return _t.empty();
}
_value_t _t;
};

View File

@ -59,11 +59,6 @@ namespace sqlpp
time_of_day_operand& operator=(time_of_day_operand&&) = default;
~time_of_day_operand() = default;
bool _is_trivial() const
{
return std::chrono::operator==(_t, _value_t{});
}
_value_t _t;
};

View File

@ -59,11 +59,6 @@ namespace sqlpp
time_point_operand& operator=(time_point_operand&&) = default;
~time_point_operand() = default;
bool _is_trivial() const
{
return std::chrono::operator==(_t, _value_t{});
}
_value_t _t;
};

View File

@ -57,11 +57,6 @@ namespace sqlpp
unsigned_integral_operand& operator=(unsigned_integral_operand&&) = default;
~unsigned_integral_operand() = default;
bool _is_trivial() const
{
return _t == 0;
}
_value_t _t;
};

View File

@ -35,11 +35,6 @@ namespace sqlpp
{
using _traits = make_traits<no_value_t, tag::is_expression>;
using _nodes = detail::type_vector<>;
static constexpr bool _is_trivial()
{
return false;
}
};
template <typename Context>

View File

@ -89,16 +89,6 @@ namespace sqlpp
return _is_null;
}
bool _is_trivial() const
{
if (not _is_valid)
{
throw exception("accessing is_null in non-existing row");
}
return value() == _cpp_storage_type{};
}
_cpp_value_type value() const
{
if (not _is_valid)