Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2004-02-13 19:45:04

On Fri, 13 Feb 2004 17:54:41 -0500, David Abrahams
<dave_at_[hidden]> wrote:

>"Giovanni Bajo" <giovannibajo_at_[hidden]> writes:
>> struct A {
>> typedef int M;
>> template <class M>
>> void foo(void) {
>> M m; // which M is this?
>> }
>> };
>> I know the C++ committe is discussing this issue at this moment. The argument
>> would be that "M" names the typedef because it's "more stable" than the
>> template parameter (which could get renamed in an out-of-class definition). See
>> also for a detailed discussion.
>I'm sorry, but that's insane from a usability POV.

Yeah. These aren't certainly the kind of rules that make we sleep
peacefully :( BTW, template parameters are among the things which get
more easily hidden in C++ - see 14.6.1/5 and 14.6.1/7. Daveed
Vandevoorde is collecting opinions on this (and replies are a

Do you know why? Is he proposing some change in the CWG?


Boost list run by bdawes at, gregod at, cpdaniel at, john at