0
0
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:
rbock 2016-04-14 09:59:35 +02:00
parent f18ab542b4
commit cc56faf98c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;