introspection: change constexpr arrays to const

clang doesn't much like non-literal types as constexpr. We can live with
them as const values for the time being, so lets do that to avoid too
much code churn.
This commit is contained in:
Danny Robson 2017-05-16 17:07:14 +10:00
parent dca8b174c6
commit 7a8e1ddb6f

View File

@ -159,7 +159,7 @@ namespace util {
///
/// Expects to be called from outside all namespaces.
#define INTROSPECTION_ENUM_IMPL(NS,E, ...) \
constexpr \
const \
std::array< \
util::enum_traits<::NS::E>::value_type, \
util::enum_traits<::NS::E>::value_count \