Opened 13 years ago

Closed 13 years ago

#3562 closed Bugs (fixed)

warning in BGL

Reported by: andrey.torba@… Owned by: Andrew Sutton
Milestone: Boost 1.41.0 Component: graph
Version: Boost 1.40.0 Severity: Cosmetic
Keywords: Cc:

Description

1>d:\development\release-boost\distribution\boost_1_40_0\boost\graph\depth_first_search.hpp(200) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data 1> d:\development\release-boost\distribution\boost_1_40_0\boost\graph\depth_first_search.hpp(301) : see reference to function template instantiation 'void boost::depth_first_search<VertexListGraph,const Arg,boost::shared_array_property_map<T,IndexMap>>(const VertexListGraph &,DFSVisitor,ColorMap,w64 unsigned int)' being compiled 1> with 1> [ 1> VertexListGraph=G, 1> Arg=const boost::topo_sort_visitor<std::back_insert_iterator<std::vector<V>>>, 1> T=boost::default_color_type, 1> IndexMap=boost::vec_adj_list_vertex_id_map<boost::no_property,__w64 unsigned int>, 1> DFSVisitor=const boost::topo_sort_visitor<std::back_insert_iterator<std::vector<V>>>, 1> ColorMap=boost::shared_array_property_map<boost::default_color_type,boost::vec_adj_list_vertex_id_map<boost::no_property,__w64 unsigned int>> 1> ]

Attachments (1)

reproduce.cpp (544 bytes ) - added by andrey.torba@… 13 years ago.
file to reproduce the warning

Download all attachments as: .zip

Change History (2)

by andrey.torba@…, 13 years ago

Attachment: reproduce.cpp added

file to reproduce the warning

comment:1 by Jeremiah Willcock, 13 years ago

Resolution: fixed
Status: newclosed

(In [57895]) Added extra casts to fix VC++ warnings; fixes #3562

Note: See TracTickets for help on using tickets.