Add const for Vertex id and getter
This commit is contained in:
@@ -22,7 +22,7 @@ Vertex::Vertex(const std::string id)
|
||||
{
|
||||
}
|
||||
|
||||
std::string Vertex::getId() const
|
||||
const std::string Vertex::getId() const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user