Skip to content

Commit 719bf74

Browse files
ManifoldFRjorisv
authored andcommitted
[veg] Fix warning: user-defined literal suffixes containing '__' are reserved; no literal will invoke this operator
1 parent cb8c2b1 commit 719bf74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/proxsuite/linalg/veg/internal/macros.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ HEDLEY_DIAGNOSTIC_PUSH
10931093
template<typename Char,
10941094
Char... Cs>
10951095
constexpr auto
1096-
operator""__veglib_const_literal_gnuc() noexcept // NOLINT
1096+
operator""_veglib_const_literal_gnuc() noexcept // NOLINT
10971097
-> proxsuite::linalg::veg::StrLiteralConstant<
10981098
proxsuite::linalg::veg::CharUnit(Cs)...>
10991099
{
@@ -1103,7 +1103,7 @@ operator""__veglib_const_literal_gnuc() noexcept // NOLINT
11031103
HEDLEY_DIAGNOSTIC_POP
11041104

11051105
#define __VEG_IMPL_UTF8_CONST(Literal) /* NOLINT */ \
1106-
(u8##Literal##__veglib_const_literal_gnuc)
1106+
(u8##Literal##_veglib_const_literal_gnuc)
11071107

11081108
#elif (defined(__clang__) && defined(VEG_WITH_CXX20_SUPPORT)) || \
11091109
(defined(__cpp_nontype_template_args) && \
@@ -1157,7 +1157,7 @@ struct StrLiteralExpand<_meta::integer_sequence<usize, Is...>, L>
11571157

11581158
template<proxsuite::linalg::veg::_detail::StrLiteralImpl S>
11591159
constexpr auto
1160-
operator""__veglib_const_literal_cpp20() noexcept ->
1160+
operator""_veglib_const_literal_cpp20() noexcept ->
11611161
typename proxsuite::linalg::veg::_detail::StrLiteralExpand< //
11621162
proxsuite::linalg::veg::_detail::_meta::make_index_sequence<
11631163
proxsuite::linalg::veg::_detail::StrLiteralLen<decltype(S)>::value>,
@@ -1166,7 +1166,7 @@ operator""__veglib_const_literal_cpp20() noexcept ->
11661166
return {};
11671167
}
11681168
#define __VEG_IMPL_UTF8_CONST(Literal) \
1169-
(u8##Literal##__veglib_const_literal_cpp20)
1169+
(u8##Literal##_veglib_const_literal_cpp20)
11701170

11711171
#else
11721172

0 commit comments

Comments
 (0)