Skip to content

Commit cc47529

Browse files
committed
Simplify code
1 parent edfa28d commit cc47529

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/tao/pq/bind.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace tao::pq
99
{
10-
template< typename, typename = void >
10+
template< typename >
1111
struct bind;
1212

1313
} // namespace tao::pq

include/tao/pq/internal/aggregate.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ namespace tao::pq::internal
2121
template< std::size_t >
2222
using indexed_convert_to_any = convert_to_any;
2323

24-
template< typename, typename, typename = void >
24+
template< typename, typename >
2525
inline constexpr bool check_aggregate_args_impl = false;
2626

2727
template< typename T, std::size_t... Is >
28-
inline constexpr bool check_aggregate_args_impl< T, std::index_sequence< Is... >, decltype( (void)T{ std::declval< indexed_convert_to_any< Is > >()... } ) > = true;
28+
requires requires { T{ std::declval< indexed_convert_to_any< Is > >()... }; }
29+
inline constexpr bool check_aggregate_args_impl< T, std::index_sequence< Is... > > = true;
2930

3031
template< typename T, std::size_t N >
3132
inline constexpr bool check_aggregate_args = check_aggregate_args_impl< T, std::make_index_sequence< N > >;

0 commit comments

Comments
 (0)