1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 11:39:15 +00:00

Fix a compile error with MSVC 2013

This commit is contained in:
Marco Costalba 2016-05-08 17:51:24 +02:00
parent 7a01beb441
commit 695eb4222a

View file

@ -76,7 +76,7 @@ struct PairsData {
// because default one is not compatible with std::atomic_bool.
struct Atomic {
Atomic() = default;
Atomic(const Atomic& e) : ready(e.ready.load()) {}
Atomic(const Atomic& e) { ready = e.ready.load(); } // MSVC 2013 wants assignment within body
std::atomic_bool ready;
};