This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [C++ PATCH] Template template parameter conformace issue (PR9737)


Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net> writes:

[...]

| However, this new behavior makes template template parameter
| feature rather useless when used together with standard C++ library
| classes.

That is a matter of personnal taste ;-)

Andrei has demonstrated that template-template parameters are useful
(even though  one might simulate them).   The template-aliasing
proposal we worked on at the last WG21 removes the need for the old
non-conformant behaviour. 

| So an option `-fweak-template-templates' is also
| introduced to weaken the parameter/argument matching rule to
| allow the old behavior.

Does it worth it?

-- Gaby


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