Skip to content

Commit

Permalink
Add const, noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 10, 2024
1 parent 2d96e74 commit 4c5d403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/tao/pq/table_field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace tao::pq
{}

public:
[[nodiscard]] auto index() const -> std::size_t;
[[nodiscard]] auto index() const noexcept -> std::size_t;

[[nodiscard]] auto is_null() const -> bool;
[[nodiscard]] auto get() const -> const char*;
Expand All @@ -48,7 +48,7 @@ namespace tao::pq
return as< std::optional< T > >();
}

[[nodiscard]] auto operator==( null_t /*unused*/ )
[[nodiscard]] auto operator==( null_t /*unused*/ ) const
{
return is_null();
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pq/table_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace tao::pq
{
auto table_field::index() const -> std::size_t
auto table_field::index() const noexcept -> std::size_t
{
return m_column - m_row->m_offset;
}
Expand Down

0 comments on commit 4c5d403

Please sign in to comment.