Boost logo

Boost :

From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-04-29 13:16:19

This looks neat and will sometimes be very useful in reducing mistakes. Tests OK
with MSVC 7.0.

Some more fully worked examples like using std::pair and case insensitive
strings are likely to be the most common applications, so these would help sell
its use.
(The tests are not ideal for this purpose, though illuminating examples).

For a submission, the tests could usefully use BOOST's own test suite and
perhaps for completeness add a few more like checking the free == and !=
operators. Tests like "assert(!l1)" and "if(l1)" implicitly use the bool
conversion which might be noted in a comment.

The enum result_type which might be documented as:

      enum result_type { minus = -1, equivalent = 0, plus = +1};

"lexicographic" is a serious fingerfull to type :-(


PS Spelling nits:

comparision also a fingerfull compared to comparison ;-)
and cpomplex too.

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
Mobile mailto:pabristow_at_[hidden]

| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]]On Behalf Of Jan Langer
| Sent: Thursday, April 17, 2003 8:27 AM
| To: boost_at_[hidden]
| Subject: [boost] lexicographic
| hi,
| three weeks ago i asked for interest in a utility class for comparing
| data lexicographically. i got several suggestions, and i tried to
| incorporate them. now i put the header, a documentation file and a test
| into the sandbox. the name is now boost/utility/lexicographic.hpp.
| jan
| --
| jan langer ... jan_at_[hidden]
| "pi ist genau drei"
| _______________________________________________
| Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at