Skip to content

Commit

Permalink
disable code that does not compile with c++ 20
Browse files Browse the repository at this point in the history
  • Loading branch information
murphytalk committed Apr 20, 2024
1 parent 4d3489d commit 4c646a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/c++notes/modern-c++/concurrency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ TEST_CASE("thread : start thread with functor", "[c++11]") {
t.join();
}


TEST_CASE("thread : start thread with std::bind", "[c++11]") {
auto thread_func = [](string const& msg) {LOG << msg << endl; };
thread t(bind(thread_func,"Hello from std::bind!"));
t.join();
}

#if 0
TEST_CASE("concurrency : double-checked locking") {
const int sample = 123;

Expand Down Expand Up @@ -155,7 +154,7 @@ TEST_CASE("concurrency : double-checked locking") {
t1.join();
t2.join();
}

#endif
}

namespace Cxx17Test{
Expand Down

0 comments on commit 4c646a3

Please sign in to comment.