mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
ax_cpp11.m4: Include <memory> header
This is needed for std::shared_ptr GCC-11 throws errors if header is not included Upstream-Status: Pending Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Tomek Mrugalski
parent
4d4cc92a71
commit
d505f7a7d6
@@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do
|
|||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM(
|
[AC_LANG_PROGRAM(
|
||||||
[#include <thread>
|
[#include <thread>
|
||||||
|
#include <memory>
|
||||||
std::shared_ptr<std::thread> th;],
|
std::shared_ptr<std::thread> th;],
|
||||||
[th.reset(new std::thread([[]]() { return; }));
|
[th.reset(new std::thread([[]]() { return; }));
|
||||||
th->join();])],
|
th->join();])],
|
||||||
|
Reference in New Issue
Block a user