diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-02 21:18:30 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-02 21:18:30 +0100 |
commit | c3a0515ac2ead7b2d0653be3517836cd31be480e (patch) | |
tree | 462dd7b4d0649ab80c66ae749f64b896a24c53cc /lib/function_traits.cpp | |
parent | dc08fb9dfd474023084de9ce86f29f177ca52fdc (diff) | |
download | libquotient-c3a0515ac2ead7b2d0653be3517836cd31be480e.tar.gz libquotient-c3a0515ac2ead7b2d0653be3517836cd31be480e.zip |
Cleanup on Sonar issues
Diffstat (limited to 'lib/function_traits.cpp')
-rw-r--r-- | lib/function_traits.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/function_traits.cpp b/lib/function_traits.cpp index 4ff427e4..20bcf30e 100644 --- a/lib/function_traits.cpp +++ b/lib/function_traits.cpp @@ -8,11 +8,11 @@ using namespace Quotient; int f_(); -static_assert(std::is_same<fn_return_t<decltype(f_)>, int>::value, +static_assert(std::is_same_v<fn_return_t<decltype(f_)>, int>, "Test fn_return_t<>"); void f1_(int, float); -static_assert(std::is_same<fn_arg_t<decltype(f1_), 1>, float>::value, +static_assert(std::is_same_v<fn_arg_t<decltype(f1_), 1>, float>, "Test fn_arg_t<>"); struct Fo { @@ -43,7 +43,7 @@ static_assert(std::is_same_v<fn_return_t<decltype(&Fo::field2)>, const double&>, struct Fo1 { void operator()(int); }; -static_assert(std::is_same<fn_arg_t<Fo1>, int>(), +static_assert(std::is_same_v<fn_arg_t<Fo1>, int>, "Test fn_arg_t defaulting to first argument"); template <typename T> |