File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ Checks: >
59
59
modernize-use-using,
60
60
performance-*,
61
61
-performance-noexcept-move-constructor,
62
- -performance-noexcept-swap,
63
62
-performance-no-int-to-ptr,
64
63
-performance-enum-size,
65
64
-performance-avoid-endl,
Original file line number Diff line number Diff line change 24
24
- NodeJS:
25
25
- CHANGED: Use node-api instead of NAN. [ #6452 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6452 )
26
26
- Misc:
27
+ - FIXED: Fix performance-noexcept-swap clang-tidy warning. [ #6931 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6931 )
27
28
- CHANGED: Use custom struct instead of std::pair in QueryHeap. [ #6921 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6921 )
28
29
- CHANGED: Use std::string_view::starts_with instead of boost::starts_with. [ #6918 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6918 )
29
30
- CHANGED: Get rid of boost::math::constants::* and M_PI in favor of std::numbers. [ #6916 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6916 )
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class DeallocatingVectorIterator
166
166
167
167
template <typename ElementT> class DeallocatingVector ;
168
168
169
- template <typename T> void swap (DeallocatingVector<T> &lhs, DeallocatingVector<T> &rhs);
169
+ template <typename T> void swap (DeallocatingVector<T> &lhs, DeallocatingVector<T> &rhs) noexcept ;
170
170
171
171
template <typename ElementT> class DeallocatingVector
172
172
{
@@ -221,9 +221,10 @@ template <typename ElementT> class DeallocatingVector
221
221
222
222
~DeallocatingVector () { clear (); }
223
223
224
- friend void swap<>(DeallocatingVector<ElementT> &lhs, DeallocatingVector<ElementT> &rhs);
224
+ friend void swap<>(DeallocatingVector<ElementT> &lhs,
225
+ DeallocatingVector<ElementT> &rhs) noexcept ;
225
226
226
- void swap (DeallocatingVector<ElementT> &other)
227
+ void swap (DeallocatingVector<ElementT> &other) noexcept
227
228
{
228
229
std::swap (current_size, other.current_size );
229
230
bucket_list.swap (other.bucket_list );
@@ -342,7 +343,7 @@ template <typename ElementT> class DeallocatingVector
342
343
}
343
344
};
344
345
345
- template <typename T> void swap (DeallocatingVector<T> &lhs, DeallocatingVector<T> &rhs)
346
+ template <typename T> void swap (DeallocatingVector<T> &lhs, DeallocatingVector<T> &rhs) noexcept
346
347
{
347
348
lhs.swap (rhs);
348
349
}
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ namespace osrm::util
10
10
11
11
namespace permutation_detail
12
12
{
13
- template <typename T> static inline void swap (T &a, T &b) { std::swap (a, b); }
13
+ template <typename T> static inline void swap (T &a, T &b) noexcept { std::swap (a, b); }
14
14
15
- static inline void swap (std::vector<bool >::reference a, std::vector<bool >::reference b)
15
+ static inline void swap (std::vector<bool >::reference a, std::vector<bool >::reference b) noexcept
16
16
{
17
17
std::vector<bool >::swap (a, b);
18
18
}
You can’t perform that action at this time.
0 commit comments