billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
648 stars 95 forks source link

Clang 4.0 compile error: value of type 'int' is not implicitly convertible to 'ponder::ValueKind' struct ValueProviderImpl<T*, Type> #84

Closed Wonkyu-Lee closed 7 years ago

Wonkyu-Lee commented 7 years ago

detail/valueprovider.hpp line 75

in clang 4.0: error: value of type 'int' is not implicitly convertible to 'ponder::ValueKind' struct ValueProviderImpl<T*, Type>

I suggest to change type parameter 'int' to 'ValueKind': before:

template <typename T, int Type>
struct ValueProviderImpl<T*, Type>

after:

template <typename T, ValueKind valueKind>
struct ValueProviderImpl<T*, valueKind>
billyquith commented 7 years ago

In develop branch. Will appear in next release. Thanks!