We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d96e74 commit 4c5d403Copy full SHA for 4c5d403
include/tao/pq/table_field.hpp
@@ -32,7 +32,7 @@ namespace tao::pq
32
{}
33
34
public:
35
- [[nodiscard]] auto index() const -> std::size_t;
+ [[nodiscard]] auto index() const noexcept -> std::size_t;
36
37
[[nodiscard]] auto is_null() const -> bool;
38
[[nodiscard]] auto get() const -> const char*;
@@ -48,7 +48,7 @@ namespace tao::pq
48
return as< std::optional< T > >();
49
}
50
51
- [[nodiscard]] auto operator==( null_t /*unused*/ )
+ [[nodiscard]] auto operator==( null_t /*unused*/ ) const
52
{
53
return is_null();
54
src/lib/pq/table_field.cpp
@@ -10,7 +10,7 @@
10
11
namespace tao::pq
12
13
- auto table_field::index() const -> std::size_t
+ auto table_field::index() const noexcept -> std::size_t
14
15
return m_column - m_row->m_offset;
16
0 commit comments