Add cpp_enum and cpp_enum_value

This commit is contained in:
Jonathan Müller 2017-01-21 22:44:53 +01:00
commit a2c54165bd
6 changed files with 142 additions and 2 deletions

View file

@ -45,7 +45,7 @@ namespace cppast
{
static_assert(std::is_base_of<U, T>::value, "must be a base");
obj.next_ = std::move(node);
return obj.next_.get();
return static_cast<T*>(obj.next_.get());
}
template <typename U, typename V>