This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The future C++ template model in gcc


Florian Schintke <schintke@zib.de> writes:

| No, my idea is to provide additional information to solve this
| differences in a single implementation.

So, you don't consider partial and explicit specializations?

| The compiler would add information about the size of the template
| parameter object when instantiating:
| 
| The compiler would do something like the following, not the user:
|  	template <typename T, typename sizeofT> int Foo () {return sizeofT;}

But that breaks down because template can be overloaded, and the above
may clash with user defined template function.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]