std::string::c_str() is const
This commit is contained in:
@@ -131,7 +131,7 @@ public:
|
||||
* Get the path string
|
||||
* @return path in "C" string (ptr to char array) form.
|
||||
*/
|
||||
const char* c_str() { return path.c_str(); }
|
||||
const char* c_str() const { return path.c_str(); }
|
||||
|
||||
/**
|
||||
* Determine if file exists by attempting to fopen it.
|
||||
|
||||
Reference in New Issue
Block a user