On Fri, Sep 28, 2012 at 8:18 AM, Michael Matz <m...@suse.de> wrote:

>> It is common practice to have
>>
>> struct Q
>> {
>>   typedef int E;
>>   E getme (int index);
>> };
>
> Easy: I wouldn't make a typedef for Q::E that merely is int.  The reason
> is that it makes knowing what getme really returns harder.

The point of these nested type is precisely to allow  a *uniform* access
to associated from within a template (e.g. a container) -- irrespective of
what those types happen to resolve to, builtin or not.

-- Gaby

Reply via email to