Fix constness

This commit is contained in:
Baptiste Wicht 2016-08-15 21:30:53 +02:00
parent a58c4b90fa
commit 9f99d7d87c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ struct path {
path& operator=(const path& rhs) = default;
path& operator=(path&& rhs) = default;
bool empty();
bool empty() const;
private:
std::vector<std::string> names;

View File

@ -19,6 +19,6 @@ path::path(const std::string& path){
}
}
bool path::empty(){
bool path::empty() const {
return names.empty();
}