Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-04-09 17:20:33 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-04-09 17:20:47 +0300
commit3c3d4d74f739b0d6535f1add2cebabea3f9279d0 (patch)
tree4ecce99cdaaefd6676782b6d60d44a5bdd82dd8b /tests-other
parentbbac2e8d8da823198e2abc0072a3b4aceb57b8ee (diff)
Workaround lack of lvalue/rvalue operator overload on MSVC 2013.
Diffstat (limited to 'tests-other')
-rw-r--r--tests-other/small_vector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-other/small_vector.cpp b/tests-other/small_vector.cpp
index 42000809..7b03d85c 100644
--- a/tests-other/small_vector.cpp
+++ b/tests-other/small_vector.cpp
@@ -197,11 +197,14 @@ static void convert_to_std_vector()
SPVC_ASSERT(ints[0].v == 1);
SPVC_ASSERT(ints[1].v == 2);
+ // This doesn't work on MSVC 2013. Ignore it.
+#if !(defined(_MSC_VER) && _MSC_VER < 1900)
SmallVector<std::unique_ptr<RAIIInt>> move_only_buffer;
move_only_buffer.emplace_back(new RAIIInt(40));
std::vector<std::unique_ptr<RAIIInt>> move_only_vector(std::move(move_only_buffer));
SPVC_ASSERT(move_only_vector.size() == 1);
SPVC_ASSERT(move_only_vector[0]->v == 40);
+#endif
}
int main()