mirror of
https://github.com/boostorg/graph.git
synced 2026-02-02 08:52:10 +00:00
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]
This commit is contained in:
@@ -192,6 +192,11 @@ class compressed_sparse_row_graph<directedS, VertexProperty, EdgeProperty, Graph
|
||||
VertexProperty, Vertex, typed_identity_property_map<Vertex> >
|
||||
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<VertexProperty, void>::value));
|
||||
BOOST_STATIC_ASSERT((!is_same<EdgeProperty, void>::value));
|
||||
BOOST_STATIC_ASSERT((!is_same<GraphProperty, void>::value));
|
||||
|
||||
public:
|
||||
// For Property Graph
|
||||
typedef GraphProperty graph_property_type;
|
||||
|
||||
Reference in New Issue
Block a user