Fix return type having same name as function
This commit is contained in:
parent
03495fbf11
commit
98e709fdfc
3 changed files with 34 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue