2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +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:
Khem Raj
2021-02-26 23:14:20 -08:00
committed by Tomek Mrugalski
parent 4d4cc92a71
commit d505f7a7d6

View File

@@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <thread>
#include <memory>
std::shared_ptr<std::thread> th;],
[th.reset(new std::thread([[]]() { return; }));
th->join();])],