We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7933df6 commit be9dcb5Copy full SHA for be9dcb5
include/xsimd/arch/xsimd_scalar.hpp
@@ -93,11 +93,15 @@ namespace xsimd
93
94
namespace detail
95
{
96
- inline char abs(char v, std::true_type)
+ // Use templated type here to prevent automatic instantiation that may
97
+ // ends up in a warning
98
+ template <typename char_type>
99
+ inline char abs(char_type v, std::true_type)
100
101
return v;
102
}
- inline char abs(char v, std::false_type)
103
104
+ inline char abs(char_type v, std::false_type)
105
106
return v < 0 ? -v : v;
107
0 commit comments