mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Specific comparison operators
In case we want to turn operator== into a free function, this will prevent premature instantiation of wrap_operand
This commit is contained in:
parent
f18ab542b4
commit
cc56faf98c
@ -61,7 +61,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
bool _is_trivial() const
|
bool _is_trivial() const
|
||||||
{
|
{
|
||||||
return _t == _value_t{};
|
return std::chrono::operator==(_t, _value_t{});
|
||||||
}
|
}
|
||||||
|
|
||||||
_value_t _t;
|
_value_t _t;
|
||||||
|
@ -62,7 +62,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
bool _is_trivial() const
|
bool _is_trivial() const
|
||||||
{
|
{
|
||||||
return _t == _value_t{};
|
return std::chrono::operator==(_t, _value_t{});
|
||||||
}
|
}
|
||||||
|
|
||||||
_value_t _t;
|
_value_t _t;
|
||||||
|
Loading…
Reference in New Issue
Block a user