Parse cpp_function_template

This commit is contained in:
Jonathan Müller 2017-03-25 14:34:04 +01:00
commit eeb48f1df5
18 changed files with 397 additions and 60 deletions

View file

@ -147,8 +147,9 @@ namespace cppast
/// \returns The finished function without registering it.
/// \notes This is intended for templated functions only.
std::unique_ptr<T> finish()
std::unique_ptr<T> finish(cpp_function_body_kind body_kind)
{
function->body_ = body_kind;
return std::move(function);
}