Skip to content

Commit 685f451

Browse files
cfriedt-friedtcostephanosio
authored andcommitted
libstdc++-v3: std_thread: include shared_ptr.h
shared_ptr was being used inside of a _GLIBCXX_THREAD_ABI_COMPAT block. Include the header which defines that class. Signed-off-by: Christopher Friedt <chris@friedt.co>
1 parent 46c4fe6 commit 685f451

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libstdc++-v3/include/bits/std_thread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include <bits/invoke.h> // std::__invoke
4242
#include <bits/refwrap.h> // not required, but helpful to users
4343
#include <bits/unique_ptr.h> // std::unique_ptr
44+
#include <bits/shared_ptr.h> // std::shared_ptr
4445

4546
#ifdef _GLIBCXX_HAS_GTHREADS
4647
# include <bits/gthr.h>

0 commit comments

Comments
 (0)