Skip to content

Commit

Permalink
warning: storage class is not first
Browse files Browse the repository at this point in the history
This pull request fixes the warning issued by `nvc++`
(the C++ compiler in Nvidia HPC SDK/PGI),
and is similar to pull request #1717.
  • Loading branch information
zhi-wang authored and horenmar committed Sep 21, 2022
1 parent 98d37da commit d6bbd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catch2/internal/catch_meta.hpp
Expand Up @@ -17,9 +17,9 @@ namespace Catch {
template <typename> struct true_given : std::true_type {};
struct is_callable_tester {
template <typename Fun, typename... Args>
true_given<decltype(std::declval<Fun>()(std::declval<Args>()...))> static test(int);
static true_given<decltype(std::declval<Fun>()(std::declval<Args>()...))> test(int);
template <typename...>
std::false_type static test(...);
static std::false_type test(...);
};

template <typename T>
Expand Down

0 comments on commit d6bbd3f

Please sign in to comment.