diff options
| author | Zhi Wang | 2022-09-21 06:54:11 -0500 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-09-21 20:14:12 +0200 |
| commit | d6bbd3fdef793b887728e00e5da857bc1732f97b (patch) | |
| tree | 8bcd5a62cf5a6aaa3fe878c8b79804a38b5f0868 /src/catch2 | |
| parent | 98d37da03ee21e8a87cd3e0e6542c794c667e78b (diff) | |
| download | catch3-d6bbd3fdef793b887728e00e5da857bc1732f97b.tar.gz | |
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.
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_meta.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_meta.hpp b/src/catch2/internal/catch_meta.hpp index 7d573585..abb86ab5 100644 --- a/src/catch2/internal/catch_meta.hpp +++ b/src/catch2/internal/catch_meta.hpp @@ -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> |