billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
633 stars 92 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 6 years ago

Wonkyu-Lee commented 6 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 6 years ago

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