Topic: State of "User supplied specializations or overloads of namespace std function templates"?
Author: Helmut Zeisel <zei2006q1@liwest.at>
Date: Thu, 27 Aug 2009 16:45:09 CST Raw View
What is the current state of Standard Library Defect Report 226: "User
supplied specializations or overloads of namespace std function
templates"?
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226
currently says "Informally: introduce a Swappable concept, and specify
that the value types of the iterators passed to certain standard
algorithms ... conform to that concept."
Since concepts were removed, what will now be the most likely
solution?
Helmut
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Howard Hinnant <howard.hinnant@gmail.com>
Date: Mon, 31 Aug 2009 12:38:39 CST Raw View
On Aug 27, 6:45 pm, Helmut Zeisel <zei200...@liwest.at> wrote:
> What is the current state of Standard Library Defect Report 226: "User
> supplied specializations or overloads of namespace std function
> templates"?
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#226
> currently says "Informally: introduce a Swappable concept, and specify
> that the value types of the iterators passed to certain standard
> algorithms ... conform to that concept."
>
> Since concepts were removed, what will now be the most likely
> solution?
This wording in the rationale of LWG 226 was written a year to two
prior to the concepts proposals becoming widely understood, even
within the LWG. There was no intent to imply a dependency on C++
concepts. One should read "concepts" merely as an English word here.
-Howard
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Helmut Zeisel <zei2006q1@liwest.at>
Date: Mon, 31 Aug 2009 17:06:45 CST Raw View
On 31 Aug., 20:38, Howard Hinnant <howard.hinn...@gmail.com> wrote:
> On Aug 27, 6:45 pm, Helmut Zeisel <zei200...@liwest.at> wrote:
> > Since concepts were removed, what will now be the most likely
> > solution?
>
> This wording in the rationale of LWG 226 was written a year to two
> prior to the concepts proposals becoming widely understood, even
> within the LWG. There was no intent to imply a dependency on C++
> concepts. One should read "concepts" merely as an English word here.
>
> -Howard
Do I understand correctly that your solution
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1439.htm
just suggests to change the standard algorithms in such a way that
they look like lib2 in Defect Report 226;
if I write some class I should write swap like in lib1 Defect Report
226 (i.e. nonmember function at namespace scope),
and if I write some generic algorithm, it should also look like lib2
(i.e. contain "using std::swap;")?
Helmut
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]