Alex Chovanec wrote:
> 
> I suppose for starters, you could create a generic binary function for
> operator< and other operators, maybe something like this:
> 
>     template <typename T>
>     struct ptr_less
>     {
>         bool operator()(const T * lhs, const T * rhs)
>         {
>             return (*lhs < *rhs);
>         }
>     };

More like

     struct ptr_less
     {
         template <typename T>
         bool operator()(T * lhs, T * rhs)
         {
             return *lhs < *rhs;
         }
     };

or *_1 < *_2.
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to