Apply workaround for Apple to FreeBSD aswell

Maybe these should be triggered by __clang__?
This commit is contained in:
Andrea Cocito 2022-12-12 21:06:42 +01:00 committed by GitHub
parent cae4d3e498
commit c8e376cfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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;