]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
MSVC gets confused by one line of the graph tests
authorMatthew Barr <matthew.barr@intel.com>
Thu, 5 Jan 2017 04:12:56 +0000 (15:12 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 6 Jan 2017 00:24:16 +0000 (11:24 +1100)
unit/internal/graph.cpp

index 3f81ac132093586177212c4b2fb83110465303a5..5e3952a61be850132471ad7ddd1dd72554f45775 100644 (file)
@@ -1779,6 +1779,9 @@ TEST(ue2_graph, default_param) {
     auto e = add_edge(v, v, g).first;
 
     ASSERT_EQ(0U, get(vertex_index, g, v));
-    ASSERT_EQ(0U, get(&ue2::graph_detail::default_edge_property::index, g, e));
     ASSERT_EQ(0U, get(edge_index, g, e));
+#if !defined(_MSC_VER)
+    /* This makes MSVC up to VS2015 sad in ways that shouldn't happen. */
+    ASSERT_EQ(0U, get(&ue2::graph_detail::default_edge_property::index, g, e));
+#endif
 }