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
|
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));
|
o = std::unique_ptr<object>(new object(initializer_list));
|
||||||
#else
|
#else
|
||||||
(*o) = initializer_list;
|
(*o) = initializer_list;
|
||||||
@ -1689,7 +1689,7 @@ namespace crow
|
|||||||
}
|
}
|
||||||
else
|
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));
|
o = std::unique_ptr<object>(new object(value));
|
||||||
#else
|
#else
|
||||||
(*o) = value;
|
(*o) = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user