summaryrefslogtreecommitdiff
path: root/test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp')
-rw-r--r--test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp b/test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp
index afc318cc3d7a..71b054fced88 100644
--- a/test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp
+++ b/test/std/thread/thread.mutex/thread.once/thread.once.callonce/call_once.pass.cpp
@@ -21,6 +21,8 @@
#include <thread>
#include <cassert>
+#include "test_macros.h"
+
typedef std::chrono::milliseconds ms;
std::once_flag flg0;
@@ -171,7 +173,7 @@ public:
void operator()(int&) {}
};
-#if __cplusplus >= 201103L
+#if TEST_STD_VER >= 11
// reference qualifiers on functions are a C++11 extension
struct RefQual
{
@@ -240,7 +242,7 @@ int main()
int i = 0;
std::call_once(f, NonCopyable(), i);
}
-#if __cplusplus >= 201103L
+#if TEST_STD_VER >= 11
// reference qualifiers on functions are a C++11 extension
{
std::once_flag f1, f2;