From 518ea9dfb2af26c03dff837bc724cc12e5bfd0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 9 Apr 2014 18:19:54 +0200 Subject: [PATCH] GCC 4.4 compatibility: explicit std::reference_wrapper constructor. --- src/MagnumPlugins/ObjImporter/ObjImporter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MagnumPlugins/ObjImporter/ObjImporter.cpp b/src/MagnumPlugins/ObjImporter/ObjImporter.cpp index ad01143db..85e13b65f 100644 --- a/src/MagnumPlugins/ObjImporter/ObjImporter.cpp +++ b/src/MagnumPlugins/ObjImporter/ObjImporter.cpp @@ -424,9 +424,9 @@ std::optional ObjImporter::doMesh3D(UnsignedInt id) { if(!normalIndices.empty() || !textureCoordinateIndices.empty()) { std::vector>> arrays; arrays.reserve(3); - arrays.push_back(positionIndices); - if(!normalIndices.empty()) arrays.push_back(normalIndices); - if(!textureCoordinateIndices.empty()) arrays.push_back(textureCoordinateIndices); + arrays.push_back(std::ref(positionIndices)); + if(!normalIndices.empty()) arrays.push_back(std::ref(normalIndices)); + if(!textureCoordinateIndices.empty()) arrays.push_back(std::ref(textureCoordinateIndices)); indices = MeshTools::combineIndexArrays(arrays); /* Reindex data arrays */