Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2004-06-06 23:18:55


vc6.0 is a very old compiler
there are known code generation problems (to me personally) before sp4
(btw, sp6 is the latest)

At Sunday 2004-06-06 02:28, you wrote:
>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 mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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