From 981e9896b4d57d48bb672a92357166c89a09eacd Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Thu, 5 Jan 2017 15:12:56 +1100 Subject: [PATCH] MSVC gets confused by one line of the graph tests --- unit/internal/graph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unit/internal/graph.cpp b/unit/internal/graph.cpp index 3f81ac13..5e3952a6 100644 --- a/unit/internal/graph.cpp +++ b/unit/internal/graph.cpp @@ -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 }