Skip to content

Commit 4373b38

Browse files
authored
Merge pull request #420 from ManifoldFR/operator-whitespace-fix
[veg] Fix `-Wdeprecated-literal-operator` warning
2 parents 7b81cb8 + bc2fcaa commit 4373b38

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1919
### Fixed
2020
- Use the right table to store `configure-args` cmeel argument ([#403](https://github.com/Simple-Robotics/proxsuite/pull/403))
2121
- Allow project to be used as an external CMake project (FetchContent) ([#408](https://github.com/Simple-Robotics/proxsuite/pull/408))
22+
- Fix -Wdeprecated-literal-operator warning ([#420](https://github.com/Simple-Robotics/proxsuite/pull/420))
2223

2324
### Removed
2425
- Don't release PyPy package on GNU/Linux anymore ([#403](https://github.com/Simple-Robotics/proxsuite/pull/403))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct binary_traits<Dyn, Fix<N>> : binary_traits<Dyn, Dyn>
259259

260260
inline namespace literals {
261261
VEG_INLINE constexpr auto
262-
operator"" _v(unsigned long long n) VEG_NOEXCEPT->Dyn
262+
operator""_v(unsigned long long n) VEG_NOEXCEPT->Dyn
263263
{
264264
return isize(n);
265265
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ namespace adl {
326326
inline namespace literals {
327327
template<char... Chars>
328328
VEG_INLINE constexpr auto
329-
operator"" _c() VEG_NOEXCEPT
329+
operator""_c() VEG_NOEXCEPT
330330
{
331331
return Fix<_detail::parse_int(
332332
_detail::char_seq<Chars...>::value, sizeof...(Chars), _detail::Error{})>{};

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)