fix: compilation error with libc++

This commit is contained in:
ItsAlbertZhang 2024-03-19 08:23:48 +08:00 committed by gittiver
parent d0f1991e38
commit ad337a8a86
1 changed files with 2 additions and 2 deletions

View File

@ -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<object>(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<object>(new object(value));
#else
(*o) = value;