From 5ba855f46ee142121385eeaa323104138d285e8f Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Mon, 26 Aug 2013 04:11:49 +0000 Subject: [PATCH] Removed use of "void" as property type to avoid errors in Clang; added static assertion to prevent this use in the future (it is broken anyway) [SVN r85472] --- include/boost/graph/compressed_sparse_row_graph.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/graph/compressed_sparse_row_graph.hpp b/include/boost/graph/compressed_sparse_row_graph.hpp index de3234a0..7b91d4d6 100644 --- a/include/boost/graph/compressed_sparse_row_graph.hpp +++ b/include/boost/graph/compressed_sparse_row_graph.hpp @@ -192,6 +192,11 @@ class compressed_sparse_row_graph > inherited_vertex_properties; + // Some tests to prevent use of "void" is a property type (as was done in some test cases): + BOOST_STATIC_ASSERT((!is_same::value)); + BOOST_STATIC_ASSERT((!is_same::value)); + BOOST_STATIC_ASSERT((!is_same::value)); + public: // For Property Graph typedef GraphProperty graph_property_type;