summaryrefslogtreecommitdiff
path: root/TestPrograms/test_cxx11_sync.cxx
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-08-06 00:39:40 -0400
committerJeffrey Walton <noloader@gmail.com>2020-08-06 00:39:40 -0400
commit029d92d412a7291ac35789a1f4bc26c48a41f32e (patch)
tree2611d4b0ee4a6b8d99ff172d70191b4a8115da6d /TestPrograms/test_cxx11_sync.cxx
parent66d7a2a6045d092a3d131cf06289e68b9ba46e3b (diff)
downloadcryptopp-git-029d92d412a7291ac35789a1f4bc26c48a41f32e.tar.gz
Add C++11, C++14 and C++17 support to configure.sh
Diffstat (limited to 'TestPrograms/test_cxx11_sync.cxx')
-rw-r--r--TestPrograms/test_cxx11_sync.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/TestPrograms/test_cxx11_sync.cxx b/TestPrograms/test_cxx11_sync.cxx
index 56076924..92c7b514 100644
--- a/TestPrograms/test_cxx11_sync.cxx
+++ b/TestPrograms/test_cxx11_sync.cxx
@@ -1,7 +1,7 @@
-#include <mutex>
-int main(int argc, char* argv[])
-{
- static std::mutex m;
- std::lock_guard<std::mutex> l(m);
- return 0;
-}
+#include <mutex>
+int main(int argc, char* argv[])
+{
+ std::mutex m;
+ std::lock_guard<std::mutex> l(m);
+ return 0;
+}