Skip to content

Commit 2d96e74

Browse files
committed
Cleanup
1 parent 57ddbde commit 2d96e74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/tao/pq/table_field.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ namespace tao::pq
4848
return as< std::optional< T > >();
4949
}
5050

51+
[[nodiscard]] auto operator==( null_t /*unused*/ )
52+
{
53+
return is_null();
54+
}
55+
5156
friend void swap( table_field& lhs, table_field& rhs ) noexcept
5257
{
5358
std::swap( lhs.m_row, rhs.m_row );
5459
std::swap( lhs.m_column, rhs.m_column );
5560
}
5661
};
5762

58-
[[nodiscard]] inline auto operator==( const table_field& f, null_t /*unused*/ )
59-
{
60-
return f.is_null();
61-
}
62-
6363
} // namespace tao::pq
6464

6565
#endif

0 commit comments

Comments
 (0)