Add cpp_function_template

This commit is contained in:
Jonathan Müller 2017-02-01 21:29:05 +01:00
commit 93c6e0f44c
6 changed files with 71 additions and 0 deletions

View file

@ -112,6 +112,13 @@ namespace cppast
return std::move(function);
}
/// \returns The finished function without registering it.
/// \notes This is intended for templated functions only.
std::unique_ptr<T> finish()
{
return std::move(function);
}
protected:
basic_builder() = default;
~basic_builder() noexcept = default;