Boost logo

Boost Users :

From: mhosni_at_[hidden]
Date: 2004-06-06 04:28:32


Hi all,

while trying to compile the city_visitor.cpp example in the Graph lib with
VC60 SP 3, I've got the following error

 --------------
 --------------------Configuration: CityVisitor - Win32
Release--------------------
Compiling...
CityVisitor.cpp
C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(132) : error
C2059: syntax error : 'static_cast'
       C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(228) :
see reference to function template instantiation 'void __cdecl
boost::detail::depth_first_visit_impl(const class
boost::adjacency_list<struct boost::vecS,struct boost::vec
S,struct boost::undirectedS,struct boost::no_property,struct
boost::no_property,struct boost::no_property,struct boost::listS> &,unsigned
int,class boost::dfs_visitor<struct std::pair<struct city_arrival,struct
std::pair<struct neighbor_cities,struc
t finish_city> > > &,class boost::iterator_property_map<enum
boost::default_color_type *,struct boost::vec_adj_list_vertex_id_map<struct
boost::no_property,unsigned int>,enum boost::default_color_type,enum
boost::default_color_type &>,struct boost::
detail::nontruth2)' being compiled
Error executing cl.exe.

CityVisitor.exe - 1 error(s), 0 warning(s)
 ---------------------------------------------

To be noted, the static_cast operator compiles normally in any other
application.
The archives of the mailing list contains a similar complain with
iterator.hpp (dated Feb 2003 !!) but no solutions were posted in response.

Anybody have any idea how to get through this problem

Regards,
M.Hosni


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net