New BGL warning in 1.30.0
I'm now getting the following warning from BGL 1.30.0:
/gg/boost/boost/pending/property.hpp:71: warning: sorry: semantics of inline function static data `const bool match' are wrong (you'll wind up with multiple copies)
/gg/boost/boost/pending/property.hpp:71: warning: you can work around this by removing the initializer
The code that generates the above warning looks something like this:
Territory* t1 = new Territory(...);
Vertex vertex = add_vertex(m_graph);
put(vertex_name, m_graph, vertex, t1); // generates warning
The graph declaration looks like this:
typedef adjacency_list
Hi Steven, Steven Solie wrote:
I'm now getting the following warning from BGL 1.30.0: /gg/boost/boost/pending/property.hpp:71: warning: sorry: semantics of inline function static data `const bool match' are wrong (you'll wind up with multiple copies) /gg/boost/boost/pending/property.hpp:71: warning: you can work around this by removing the initializer
Yuck! Looks like the compiler is saying that it has bug...
The code that generates the above warning looks something like this: Territory* t1 = new Territory(...); Vertex vertex = add_vertex(m_graph); put(vertex_name, m_graph, vertex, t1); // generates warning
The graph declaration looks like this: typedef adjacency_list
> > Graph; I don't have any problems with BGL 1.29.0
The change which upsets your compiler is revision 1.15 date: 2003/02/17 07:58:00; author: vladimir_prus; state: Exp; lines: +6 -4 Use BOOST_STATIC_CONSTANT. and was made as the result of http://article.gmane.org/gmane.comp.lib.boost.devel/16652/ --- the HP compiler did not like the previous version. The question is whether you'll be using 2.95.3 by the time next Boost version is released? If not, I suggest you just apply the attached reverse patch. If yes... something more is needed. - Volodya [Non-text portions of this message have been removed]
participants (2)
-
Steven Solie
-
Vladimir Prus