Add enum category example

This commit is contained in:
Jonathan Müller 2017-11-10 11:54:21 +01:00
commit 0b71d7d3b4
5 changed files with 122 additions and 5 deletions

View file

@ -39,7 +39,7 @@ std::string cpp_function_base::do_get_signature() const
{
std::string result = "(";
for (auto& param : parameters())
result += detail::to_string(param.type()) + ',';
result += to_string(param.type()) + ',';
if (is_variadic())
result += "...";

View file

@ -581,7 +581,7 @@ void detail::write_type(code_generator::output& output, const cpp_type& type, st
write_type_suffix(output, type);
}
std::string detail::to_string(const cpp_type& type)
std::string cppast::to_string(const cpp_type& type)
{
class to_string_generator : public code_generator
{