Subject: Re: [boost] [Iterator][MultiIndex]iterator-specificpartition_point-relatedfunctions
From: Arno SchÃ¶dl (aschoedl_at_[hidden])
Date: 2008-12-25 09:47:08
>>> Inviting users to overload in your namespace is simply not a viable
>>> customization approach in general, so ADL is it.
>> O.k., agreed.
>> Why do you think ADL is o.k. for customizing boost::partition_point (soon
>> std::partition_point, N2666), but not for customizing std::lower_bound? AFAIK, the
>> same arguments apply to both.
>Because nobody wants to customize lower_bound, upper_bound, equal_range,
>and binary_search when they could instead customize partition point
I thought about what you are really after. You are probably envisioning future standardization, where partition_point is a fundamental operation similar to swap, and lower_bound/... implementations must invoke ADL for partition_point, just like C++0x requires it for swap. As a start, we are now adding such a lower_bound/... into boost. Is that your thinking?
-- Dr. Arno Schoedl Â· aschoedl_at_[hidden] Technical Director think-cell Software GmbH Â· Invalidenstr. 34 Â· 10115 Berlin, Germany http://www.think-cell.com Â· phone +49-30-666473-10 Â· toll-free (US) +1-800-891-8091 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl Â· Amtsgericht Charlottenburg, HRB 85229
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk