Skip to content

Commit 350d32a

Browse files
committed
Remove C++11
Signed-off-by: Louise Poubel <louise@openrobotics.org>
1 parent b46cd46 commit 350d32a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tiny_obj_loader.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,8 @@ static void SplitString(const std::string &s, char delim, char escape,
16651665
std::string token;
16661666

16671667
bool escaping = false;
1668-
for (char ch : s) {
1668+
for (int i = 0; i < s.size(); ++i) {
1669+
char ch = s[i];
16691670
if (escaping) {
16701671
escaping = false;
16711672
} else if (ch == escape) {

0 commit comments

Comments
 (0)