Fixed compilation under android ndk, operator = was undefined

This commit is contained in:
Marc Robert 2023-05-12 00:49:57 +02:00 committed by GitHub
parent 3b81e16614
commit 4eb78bb366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1656,7 +1656,7 @@ namespace crow
} }
else else
{ {
#if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__) #if defined(__APPLE__) || defined(__MACH__) || defined (__FreeBSD__) || defined (__ANDROID__)
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;