From aad6f06208beb04e0a68255f17880b6d981abdf2 Mon Sep 17 00:00:00 2001 From: Arthur Brainville Date: Tue, 20 Feb 2018 02:00:50 +0100 Subject: [PATCH] Fix linux build in C++11 strict Signed-off-by: Arthur Brainville (Ybalrid) --- examples/raytrace/gltf-loader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/raytrace/gltf-loader.cc b/examples/raytrace/gltf-loader.cc index 58cee99..ba4db97 100644 --- a/examples/raytrace/gltf-loader.cc +++ b/examples/raytrace/gltf-loader.cc @@ -264,7 +264,7 @@ bool LoadGLTF(const std::string &filename, float scale, v3fArray positions( arrayAdapter(dataPtr, count, byte_stride)); for (size_t i{0}; i < indices.size(); ++i) { - const auto index{indices[i]}; + const auto index(indices[i]); const auto v = positions[index]; std::cout << '(' << v.x << ", " << v.y << ", " << v.z << ")\n"; @@ -292,7 +292,7 @@ bool LoadGLTF(const std::string &filename, float scale, v3fArray normals( arrayAdapter(dataPtr, count, byte_stride)); for (size_t i{0}; i < indices.size(); ++i) { - const auto index{indices[i]}; + const auto index(indices[i]); const auto v = normals[index]; std::cout << '(' << v.x << ", " << v.y << ", " << v.z << ")\n";