Skip to content

Commit cb37573

Browse files
committed
hash<thread::id>
1 parent e3da46d commit cb37573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ void condition_variable_11()
721721
void threads_11()
722722
{
723723
this_thread::yield();
724-
this_thread::get_id();
724+
assert(hash<thread::id>()(this_thread::get_id()));
725725
this_thread::sleep_for(chrono::nanoseconds(1));
726726
promise<int> p;
727727
future<int> f = p.get_future();

0 commit comments

Comments
 (0)