🚨 fix warnings
This commit is contained in:
parent
d0694895b5
commit
1e025aaadc
4
tests/thirdparty/fifo_map/fifo_map.hpp
vendored
4
tests/thirdparty/fifo_map/fifo_map.hpp
vendored
@ -393,7 +393,7 @@ template <
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// swaps the contents
|
/// swaps the contents
|
||||||
void swap(fifo_map& other)
|
void swap(fifo_map& other) // NOLINT(cppcoreguidelines-noexcept-swap,performance-noexcept-swap)
|
||||||
{
|
{
|
||||||
std::swap(m_map, other.m_map);
|
std::swap(m_map, other.m_map);
|
||||||
std::swap(m_compare, other.m_compare);
|
std::swap(m_compare, other.m_compare);
|
||||||
@ -520,7 +520,7 @@ template <
|
|||||||
namespace std // NOLINT(cert-dcl58-cpp,-warnings-as-errors)
|
namespace std // NOLINT(cert-dcl58-cpp,-warnings-as-errors)
|
||||||
{
|
{
|
||||||
template <class Key, class T, class Compare, class Allocator>
|
template <class Key, class T, class Compare, class Allocator>
|
||||||
inline void swap(nlohmann::fifo_map<Key, T, Compare, Allocator>& m1, // NOLINT(cert-dcl58-cpp)
|
inline void swap(nlohmann::fifo_map<Key, T, Compare, Allocator>& m1, // NOLINT(cert-dcl58-cpp,cppcoreguidelines-noexcept-swap,performance-noexcept-swap)
|
||||||
nlohmann::fifo_map<Key, T, Compare, Allocator>& m2)
|
nlohmann::fifo_map<Key, T, Compare, Allocator>& m2)
|
||||||
{
|
{
|
||||||
m1.swap(m2);
|
m1.swap(m2);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user