Boost logo

Boost Users :

Subject: Re: [Boost-users] Generically comparing structs
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-08-27 17:56:47


AMDG

Bill Buklis wrote:
> If one of the members was a C-style string, how can I override the
> comparison to use strcmp or equivalent?
>

It would be easy if you could pass a predicate to less.
Unfortunately Boost.Fusion doesn't provide such an
overload. I've adapted the implementation of less.
See attached.

In Christ,
Steven Watanabe




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