Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e754a457 authored by Stephen Hines's avatar Stephen Hines
Browse files

Remove invalid constexpr until we get to C++17.

frameworks/av/services/audiopolicy/common/managerdefinitions/src/Serializer.cpp:236:16: error: constexpr variable cannot have non-literal type 'const android::(anonymous namespace)::(lambda at frameworks/av/services/audiopolicy/common/managerdefinitions/src/Serializer.cpp:236:38)'
constexpr auto xmlDeleter<xmlChar> = [](xmlChar *s) { xmlFree(s); };
               ^
frameworks/av/services/audiopolicy/common/managerdefinitions/src/Serializer.cpp:236:38: note: lambda closure types are non-literal types before C++17
constexpr auto xmlDeleter<xmlChar> = [](xmlChar *s) { xmlFree(s); };
                                     ^

Bug: http://b/110779387
Bug: http://b/111067277
Test: Builds with new compiler.
Change-Id: Ia7ed01bf0ff064f422be2cf6026cfe8329c404bf
parent e84a3e65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment