Skip to content

Commit

Permalink
Move concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 4, 2024
1 parent 9ee9e84 commit 397d8db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/tao/pq/parameter_traits_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ namespace tao::pq

namespace internal
{
template< typename T >
concept array_parameter_type = ( pq::is_array_parameter< T > && ( pq::is_array_parameter< typename T::value_type > || ( parameter_traits< typename T::value_type >::columns == 1 ) ) );

template< typename T >
requires( !pq::is_array_parameter< T > )
void to_array( std::string& data, const T& v )
Expand All @@ -72,9 +75,6 @@ namespace tao::pq
}
}

template< typename T >
concept array_parameter_type = ( pq::is_array_parameter< T > && ( pq::is_array_parameter< typename T::value_type > || ( parameter_traits< typename T::value_type >::columns == 1 ) ) );

} // namespace internal

template< internal::array_parameter_type T >
Expand Down
6 changes: 3 additions & 3 deletions include/tao/pq/result_traits_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ namespace tao::pq

namespace internal
{
template< typename T >
concept array_result_type = ( pq::is_array_result< T > && ( pq::is_array_result< typename T::value_type > || ( result_traits_size< typename T::value_type > == 1 ) ) );

[[nodiscard]] auto parse_quoted( const char*& value ) -> std::string;
[[nodiscard]] auto parse_unquoted( const char*& value ) -> std::string;

Expand Down Expand Up @@ -104,9 +107,6 @@ namespace tao::pq
}
}

template< typename T >
concept array_result_type = ( pq::is_array_result< T > && ( pq::is_array_result< typename T::value_type > || ( result_traits_size< typename T::value_type > == 1 ) ) );

} // namespace internal

template< internal::array_result_type T >
Expand Down

0 comments on commit 397d8db

Please sign in to comment.