Fix return type having same name as function

This commit is contained in:
Jonathan Müller 2017-07-04 08:25:50 +02:00
commit 98e709fdfc
3 changed files with 34 additions and 7 deletions

View file

@ -50,7 +50,7 @@ namespace cppast
/// \returns A source location where entity and file name is available.
static source_location make_entity(std::string entity, std::string file)
{
return {std::move(entity), std::move(file), type_safe::nullopt};
return {std::move(entity), std::move(file), type_safe::nullopt, type_safe::nullopt};
}
/// \returns A possible string representation of the source location.