Opened 13 years ago

Closed 13 years ago

#3629 closed Bugs (fixed)

#warning in BGL compressed_sparse_row_graph.hpp causes MSVC compile error

Reported by: Ben Owned by: Andrew Sutton
Milestone: Boost 1.41.0 Component: graph
Version: Boost 1.40.0 Severity: Problem
Keywords: bgl msvc #warning Cc:

Description

The check for the BOOST_GRAPH_USE_NEW_CSR_INTERFACE macro in boost/graph/compressed_sparse_row_graph.hpp line 50-55 uses "#warning" to issue a compiler warning. This is not portable and causes a compile error on MSVC ("fatal error C1021: invalid preprocessor command 'warning'").

Change History (1)

comment:1 by Jeremiah Willcock, 13 years ago

Resolution: fixed
Status: newclosed

(In [57892]) Changed warning syntax for VC++; fixes #3629

Note: See TracTickets for help on using tickets.