From ad337a8a868d1d6bc61e9803fc82f36c61f706de Mon Sep 17 00:00:00 2001 From: ItsAlbertZhang Date: Tue, 19 Mar 2024 08:23:48 +0800 Subject: [PATCH] fix: compilation error with libc++ --- include/crow/json.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crow/json.h b/include/crow/json.h index 04c448b09..f4b607f03 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -1670,7 +1670,7 @@ namespace crow } else { -#if defined(__APPLE__) || defined(__MACH__) || defined(__FreeBSD__) || defined(__ANDROID__) +#if defined(__APPLE__) || defined(__MACH__) || defined(__FreeBSD__) || defined(__ANDROID__) || defined(_LIBCPP_VERSION) o = std::unique_ptr(new object(initializer_list)); #else (*o) = initializer_list; @@ -1689,7 +1689,7 @@ namespace crow } else { -#if defined(__APPLE__) || defined(__MACH__) || defined(__FreeBSD__) || defined(__ANDROID__) +#if defined(__APPLE__) || defined(__MACH__) || defined(__FreeBSD__) || defined(__ANDROID__) || defined(_LIBCPP_VERSION) o = std::unique_ptr(new object(value)); #else (*o) = value;