Skip to content

Commit

Permalink
Fix GCC warning
Browse files Browse the repository at this point in the history
Fixes #1208
  • Loading branch information
rui314 committed Mar 1, 2024
1 parent 50bdf39 commit 39643aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ struct Atomic : std::atomic<T> {

using std::atomic<T>::atomic;

Atomic(const Atomic<T> &other) { store(other.load()); }
Atomic(const Atomic<T> &other) : std::atomic<T>(other.load()) {}

Atomic<T> &operator=(const Atomic<T> &other) {
store(other.load());
Expand Down

0 comments on commit 39643aa

Please sign in to comment.