mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
fix: compilation error with libc++
This commit is contained in:
parent
d0f1991e38
commit
ad337a8a86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user