mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 21:37:33 +00:00
Fix error in ConCatPathFileName (#4575)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
99a8a68a80
commit
9dae3eac60
@@ -38,6 +38,10 @@ namespace flatbuffers {
|
||||
|
||||
// Retrieve ::back() from a string in a way that is compatible with pre C++11
|
||||
// STLs (e.g stlport).
|
||||
inline char& string_back(std::string &value) {
|
||||
return value[value.length() - 1];
|
||||
}
|
||||
|
||||
inline char string_back(const std::string &value) {
|
||||
return value[value.length() - 1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user