Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 28, 2024
1 parent b81fbe3 commit 67035b9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions include/tao/pq/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ namespace tao::pq
class table_writer;
class transaction;

namespace internal
{
template< typename >
inline constexpr bool is_optional = false;

template< typename T >
inline constexpr bool is_optional< std::optional< T > > = true;

} // namespace internal

class result final
{
private:
Expand Down Expand Up @@ -265,13 +255,6 @@ namespace tao::pq
}
}

template< typename T >
requires internal::is_optional< T >
[[nodiscard]] auto as() const
{
return optional< typename T::value_type >();
}

template< typename T, typename U >
[[nodiscard]] auto pair() const
{
Expand Down

0 comments on commit 67035b9

Please sign in to comment.