mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Merge pull request #578 from puffetto/master
Apply workaround for Apple to FreeBSD aswell
This commit is contained in:
commit
209f5ec67d
@ -1653,7 +1653,7 @@ namespace crow
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__)
|
||||
o = std::unique_ptr<object>(new object(initializer_list));
|
||||
#else
|
||||
(*o) = initializer_list;
|
||||
@ -1672,7 +1672,7 @@ namespace crow
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__)
|
||||
o = std::unique_ptr<object>(new object(value));
|
||||
#else
|
||||
(*o) = value;
|
||||
|
Loading…
Reference in New Issue
Block a user