This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Tiny tweak of the original fix for 8347
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, bkoz <bkoz at redhat dot com>
- Date: 01 Dec 2002 15:55:33 +0100
- Subject: Re: [PATCH] Tiny tweak of the original fix for 8347
- Organization: Integrable Solutions
- References: <3DE9F511.1010504@unitus.it>
Paolo Carlini <pcarlini@unitus.it> writes:
| +
| + size_type __dnew = static_cast<size_type>(distance(__beg, __end));
Please, do fully qualify the above use of distance() with std::.
If you use a standard function *internally*, not mandated by the
interface then, please don't invoke Koenig lookup.
-- Gaby