Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2008-07-12 03:28:50


Hi,

I have the follow function:
void dumpRL(const RectList& orgRectList, ostream& os) {
    for_each(orgRectList.begin(), orgRectList.end(),
boost::lambda::bind( &Rect::dump , boost::lambda::_1, boost::ref (os)
));
}

where
typedef shared_ptr<Rect> RectPtr;
typedef vector<RectPtr> RectList;

And in my Rect class, I have
class Rect {
  void dump(ostream& os) const;
}

But I am getting this compile error:

/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp: In
static member function 'static RET boost::lambda::function_action<3,
T>::apply(A1&, A2&, A3&) [with RET = void, A1 = void (Rect::*
const)(std::ostream&)const, A2 = const boost::shared_ptr<Rect>, A3 =
std::basic_ostream<char, std::char_traits<char> >, T =
boost::lambda::detail::unspecified]':
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functor_base.hpp:425:
  instantiated from 'RET
boost::lambda::lambda_functor_base<boost::lambda::action<3, Act>,
Args>::call(A&, B&, C&, Env&) const [with RET = void, A = const
boost::shared_ptr<Rect>, B = const boost::tuples::null_type, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, Act =
boost::lambda::function_action<3, boost::lambda::detail::unspecified>,
Args = boost::tuples::tuple<void (Rect::* const)(std::ostream&)const,
const boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
std::basic_ostream<char, std::char_traits<char> >&,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type>]'
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functors.hpp:156:
  instantiated from 'typename T::sig<boost::tuples::tuple<const A&,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >::type
boost::lambda::lambda_functor<Base>::operator()(const A&) const [with
A = boost::shared_ptr<Rect>, T =
boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<void (Rect::* const)(std::ostream&)const,
const boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
std::basic_ostream<char, std::char_traits<char> >&,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >]'
/usr/include/c++/4.2/bits/stl_algo.h:159: instantiated from
'_Function std::for_each(_InputIterator, _InputIterator, _Function)
[with _InputIterator = __gnu_cxx::__normal_iterator<const
boost::shared_ptr<Rect>*, std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Function =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<void (Rect::* const)(std::ostream&)const,
const boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
std::basic_ostream<char, std::char_traits<char> >&,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/home/scheung/snapshot_working2/firefox-3.0/mozilla/dom/src/blocks/RectUtils.cpp:74:
  instantiated from here
/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp:96:
error: no matching function for call to
'boost::lambda::function_adaptor<void
(Rect::*)(std::ostream&)const>::apply(void (Rect::*
const&)(std::ostream&)const, const boost::shared_ptr<Rect>&,
std::basic_ostream<char, std::char_traits<char> >&)'
/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp:96:
error: return-statement with a value, in function returning 'void'
/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp: In
static member function 'static RET boost::lambda::function_action<2,
T>::apply(A1&, A2&) [with RET = int, A1 = int (Rect::* const)()const,
A2 = const boost::shared_ptr<Rect>, T =
boost::lambda::detail::unspecified]':
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functor_base.hpp:408:
  instantiated from 'RET
boost::lambda::lambda_functor_base<boost::lambda::action<2, Act>,
Args>::call(A&, B&, C&, Env&) const [with RET = int, A = const
boost::shared_ptr<Rect>, B = const boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, Act =
boost::lambda::function_action<2, boost::lambda::detail::unspecified>,
Args = boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>]'
/usr/local/include/boost-1_35/boost/lambda/detail/select_functions.hpp:61:
  instantiated from 'static RET
boost::lambda::detail::r_select<RET>::go(const
boost::lambda::lambda_functor<Arg>&, A&, B&, C&, Env&) [with Arg =
boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >, A = const
boost::shared_ptr<Rect>, B = const boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, RET =
int]'
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functor_base.hpp:425:
  instantiated from 'RET
boost::lambda::lambda_functor_base<boost::lambda::action<3, Act>,
Args>::call(A&, B&, C&, Env&) const [with RET = bool, A = const
boost::shared_ptr<Rect>, B = const boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, Act =
boost::lambda::function_action<3, boost::lambda::detail::unspecified>,
Args = boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type>]'
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functors.hpp:188:
  instantiated from 'typename T::sig<boost::tuples::tuple<const A&,
const B&, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >::type
boost::lambda::lambda_functor<Base>::operator()(const A&, const B&)
const [with A = boost::shared_ptr<Rect>, B = boost::shared_ptr<Rect>,
T = boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >]'
/usr/include/c++/4.2/bits/stl_algo.h:125: instantiated from 'const
_Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with
_Tp = boost::shared_ptr<Rect>, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void
std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator,
_Size, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<boost::shared_ptr<Rect>*,
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Size = int, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void
std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare)
[with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<boost::shared_ptr<Rect>*,
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/home/scheung/snapshot_working2/firefox-3.0/mozilla/dom/src/blocks/RectUtils.h:337:
  instantiated from 'void do_sortX(T1&) [with T1 =
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > >, T2 = Rect]'
/home/scheung/snapshot_working2/firefox-3.0/mozilla/dom/src/blocks/RectUtils.cpp:62:
  instantiated from here
/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp:87:
error: no matching function for call to
'boost::lambda::function_adaptor<int (Rect::*)()const>::apply(int
(Rect::* const&)()const, const boost::shared_ptr<Rect>&)'
/usr/local/include/boost-1_35/boost/lambda/detail/actions.hpp: In
static member function 'static RET boost::lambda::function_action<2,
T>::apply(A1&, A2&) [with RET = int, A1 = int (Rect::* const)()const,
A2 = boost::shared_ptr<Rect>, T =
boost::lambda::detail::unspecified]':
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functor_base.hpp:408:
  instantiated from 'RET
boost::lambda::lambda_functor_base<boost::lambda::action<2, Act>,
Args>::call(A&, B&, C&, Env&) const [with RET = int, A =
boost::shared_ptr<Rect>, B = boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, Act =
boost::lambda::function_action<2, boost::lambda::detail::unspecified>,
Args = boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>]'
/usr/local/include/boost-1_35/boost/lambda/detail/select_functions.hpp:61:
  instantiated from 'static RET
boost::lambda::detail::r_select<RET>::go(const
boost::lambda::lambda_functor<Arg>&, A&, B&, C&, Env&) [with Arg =
boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >, A =
boost::shared_ptr<Rect>, B = boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, RET =
int]'
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functor_base.hpp:425:
  instantiated from 'RET
boost::lambda::lambda_functor_base<boost::lambda::action<3, Act>,
Args>::call(A&, B&, C&, Env&) const [with RET = bool, A =
boost::shared_ptr<Rect>, B = boost::shared_ptr<Rect>, C = const
boost::tuples::null_type, Env = const boost::tuples::null_type, Act =
boost::lambda::function_action<3, boost::lambda::detail::unspecified>,
Args = boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type>]'
/usr/local/include/boost-1_35/boost/lambda/detail/lambda_functors.hpp:164:
  instantiated from 'typename T::sig<boost::tuples::tuple<A&, B&,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> >::type
boost::lambda::lambda_functor<Base>::operator()(A&, B&) const [with A
= boost::shared_ptr<Rect>, B = boost::shared_ptr<Rect>, T =
boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> >]'
/usr/include/c++/4.2/bits/stl_algo.h:2278: instantiated from
'_RandomAccessIterator
std::__unguarded_partition(_RandomAccessIterator,
_RandomAccessIterator, _Tp, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<boost::shared_ptr<Rect>*,
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Tp =
boost::shared_ptr<Rect>, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void
std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator,
_Size, _Compare) [with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<boost::shared_ptr<Rect>*,
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Size = int, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'
/usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void
std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare)
[with _RandomAccessIterator =
__gnu_cxx::__normal_iterator<boost::shared_ptr<Rect>*,
std::vector<boost::shared_ptr<Rect>,
std::allocator<boost::shared_ptr<Rect> > > >, _Compare =
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<3,
boost::lambda::function_action<3, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<const std::less<int>, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<1> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >, const
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::action<2,
boost::lambda::function_action<2, boost::lambda::detail::unspecified>
>, boost::tuples::tuple<int (Rect::* const)()const, const
boost::lambda::lambda_functor<boost::lambda::placeholder<2> >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type> > >,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type> > >]'

Can you please tell me what am I missing?
It works when I have typedef Rect* RectPtr;

Thank you for any pointer.


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