This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Forgot the echo the list...
--- Begin Message ---
- From: Douglas Gregor <gregod at cs dot rpi dot edu>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Date: Sat, 27 Sep 2003 14:03:16 -0400
- Subject: Re: [Patch] Remove workaround for copy_backward
- Organization: Rensselaer Polytechnic Institute
- References: <3F75BC34.2050604@unitus.it> <3F75C858.4000108@unitus.it> <m34qyyxh2w.fsf@uniton.integrable-solutions.net>
On Saturday 27 September 2003 01:43 pm, Gabriel Dos Reis wrote: > | Anyway, if this is the way to go (by the way, are you deadly sure that > | our beloved compiler ;) is able to generate code equally efficient in > | the two cases?) > > Basically, what is happening is that the last argument (either a > __true_type or a __false_type) which we know is a compile-time > constant is "shifted" into an explicit template argument for the class > dispatcher, so one uses less function arguments or registers. Has anyone considered replacing the dispatching mechanism with one based on enable_if? That would eliminate the need for multiple levels of indirection (__copy, __copy_aux, __copy_aux2, etc.). Doug
--- End Message ---
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |