Add cpp_enum and cpp_enum_value
This commit is contained in:
parent
023ce3e87c
commit
a2c54165bd
6 changed files with 142 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue