| 32 | } |
| 33 | |
| 34 | int main() |
| 35 | { |
| 36 | check_traits(&f1); |
| 37 | check_traits(std::function<double(int const volatile, float const, int const &, float &&)>(f1)); |
| 38 | check_traits( []( int const volatile, float const, int const &, float && ) -> double |
| 39 | { |
| 40 | return 42; |
| 41 | } ); |
| 42 | check_traits( []( int const volatile, float const, int const &, float && ) noexcept -> double |
| 43 | { |
| 44 | return 42; |
| 45 | } ); |
| 46 | static_assert(leaf::detail::function_traits<int>::arity == -1, "int arity"); |
| 47 | return 0; |
| 48 | } |
nothing calls this directly
no test coverage detected