$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: kalin (kalin.eh_at_[hidden])
Date: 2005-03-06 21:57:54
> std::sort(vec.begin(), vec.end(), boost::bind(std::less<int>(), *_1,
*_2));
>
> deref.cpp:154: error: no match for 'operator*' in '*<unnamed>::_1'
> deref.cpp:154: error: no match for 'operator*' in '*<unnamed>::_2'
>
> Am I missing something?
>
If I remember correctly, the Boost.Bind placeholders (_1, _2, etc) work for
non-operator usage.
The Boost.Lambda placeholders support all the operator overloads.
kalin