Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 2, 2024
1 parent 0d6d120 commit 190db5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/TypeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace util {
*/
static std::shared_ptr<Value> get() {
#if __cplusplus >= 202002L
return data.load(std::memory_order_acquire);
return data.load(std::memory_order_acquire);
#else
return std::atomic_load_explicit(&data, std::memory_order_acquire);
#endif
Expand All @@ -96,8 +96,10 @@ namespace util {
/// Initialize our shared_ptr data
template <typename MapID, typename Key, typename Value>
#if __cplusplus >= 202002L
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
std::atomic<std::shared_ptr<Value>> TypeMap<MapID, Key, Value>::data;
#else
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
std::shared_ptr<Value> TypeMap<MapID, Key, Value>::data;
#endif

Expand Down

0 comments on commit 190db5a

Please sign in to comment.