Hello All!
In my unit tests i use Graph, Test and Assign libraries (boost 1.39, MSVC
2005).
This is an example to reproduce warning:
#include
#include
#include
#include <vector>
//#include
int main()
{
typedef
boost::adjacency_list
G;
typedef
boost::graph_traits<G>::vertex_descriptor
V;
typedef std::map Map;
G g;
std::vector<V> sorted;
Map m;
boost::add_vertex(g);
boost::topological_sort(g,
std::back_inserter(sorted),
color_map(boost::make_assoc_property_map(m)));
//boost::assign::list_of<V>(0);
return 0;
}
I noticed that when i uncomment both `#include `
and `boost::assign::list_of<V>(0);`
the warning occur:
boost\graph\depth_first_search.hpp(200) : warning C4267: 'argument' :
conversion from 'size_t' to 'unsigned int', possible loss of data
if one of the string is absent there is no warning.
Any thoughts?
--
Regards, Andrey