warning: storage class is not first

This pull request fixes the warning issued by `nvc++`
(the C++ compiler in Nvidia HPC SDK/PGI),
and is similar to pull request #1717.
This commit is contained in:
Zhi Wang 2022-09-21 06:54:11 -05:00 committed by Martin Hořeňovský
parent 98d37da03e
commit d6bbd3fdef

View File

@ -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>