From 350d32a5739e567d700dde2326673f134676b7d1 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Wed, 18 Nov 2020 09:53:15 -0800 Subject: [PATCH] Remove C++11 Signed-off-by: Louise Poubel --- tiny_obj_loader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index c8489598..bbb35ca9 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -1665,7 +1665,8 @@ static void SplitString(const std::string &s, char delim, char escape, std::string token; bool escaping = false; - for (char ch : s) { + for (int i = 0; i < s.size(); ++i) { + char ch = s[i]; if (escaping) { escaping = false; } else if (ch == escape) {