Boost logo

Boost Users :

From: Santosh Joseph (santoshjoseph73_at_[hidden])
Date: 2006-12-08 12:25:01


I have read threads about this and tried to follow the
solutions but I still compile time errors:
i'm using vs2003.net and i get this problem with
g++3.4.2

      using namespace boost::lambda;
      boost::lambda::placeholder1_type Arg;

      typedef
pair<set<string>::iterator,bool>(set<string>::*INSERT)(const
string&);
      std::vector<string> v;
      set<string> str_con;
      INSERT insert_func = &set<string>::insert;
      for_each( v.begin(), v.end(), bind( insert_func,
str_con, Arg));

p:\Vendor\boost-1.33.1\boost\lambda\detail\actions.hpp(96):
error C2665:
'boost::lambda::function_adaptor<boost::lambda::return_type_N<boost::lambda::function_action<3>,boost::lambda::lambda_functor_base<boost::lambda::action<3,boost::lambda::function_action<3>
>,boost::tuples::tuple<const
boost::lambda::detail::bind_traits<const
INSERT>::type,const
boost::lambda::detail::bind_traits<const set<string>
>::type,const boost::lambda::detail::bind_traits<const
boost::lambda::placeholder1_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type>
>::sig<boost::tuples::tuple<const
allocator<string>::value_type &>
>::rets_t>::plain_Func>::apply': none of the 2
overloads can convert parameter 2 from type 'const
rt1'

 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


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