Merge pull request #578 from puffetto/master

Apply workaround for Apple to FreeBSD aswell
This commit is contained in:
Igor Mróz 2022-12-21 23:03:29 +01:00 committed by GitHub
commit 209f5ec67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;