|
Boost : |
From: Kloss, Burkhard (Burkhard.Kloss_at_[hidden])
Date: 2000-11-30 06:19:11
As they say: If in doubt, do what the ints do .... loose the key,
reformat the hard disk, burn any printouts :)
I'm curious though: Why would you be interested in doing that? I can't see
any advantages...
-----Original Message-----
From: Daniel Frey [mailto:d.frey_at_[hidden]]
Sent: 24 November 2000 11:12
To: boost_at_[hidden]
Subject: [boost] Is allowing 'if( a < b < c )' useful?
Hi,
I just wrote a little helper class that allows to define operator< for
my own classes in a special way so that I can write
if( a < b < c ) ...
Of course it can't work with build-in types and that's why I'm not
sure if this helper class should better be locked away and someone
should lose the key or if it could be helpful to increase readability.
In the latter case, it could be added to Boost - if you like. Before I
talk to much, the helper class and a small example:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk