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;