Преглед изворни кода

FIX: C++ std::tuple constexpr initial list on old compiler [cont 1]

felix пре 2 година
родитељ
комит
0be5c567c9
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      test/unit/utglTF2ImportExport.cpp

+ 2 - 2
test/unit/utglTF2ImportExport.cpp

@@ -754,9 +754,9 @@ TEST_F(utglTF2ImportExport, wrongTypes) {
     using tup_T = std::tuple<std::string, std::string, std::string, std::string>;
     using tup_T = std::tuple<std::string, std::string, std::string, std::string>;
     std::vector<tup_T> wrongTypes = {
     std::vector<tup_T> wrongTypes = {
 #ifdef __cpp_lib_constexpr_tuple
 #ifdef __cpp_lib_constexpr_tuple
-    #define TUPLE(x) {x}
+    #define TUPLE(x, y, z, w) {x, y, z, w}
 #else
 #else
-    #define TUPLE(x) tup_T(x)
+    #define TUPLE(x, y, z, w) tup_T(x, y, z, w)
 #endif
 #endif
         TUPLE("/glTF2/wrongTypes/badArray.gltf", "array", "primitives", "meshes[0]"),
         TUPLE("/glTF2/wrongTypes/badArray.gltf", "array", "primitives", "meshes[0]"),
         TUPLE("/glTF2/wrongTypes/badString.gltf", "string", "name", "scenes[0]"),
         TUPLE("/glTF2/wrongTypes/badString.gltf", "string", "name", "scenes[0]"),