Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-14 14:33:14


"Fredrik Blomqvist" <fredrik_blomqvist_at_[hidden]> writes:

> David Abrahams wrote:
> [snip]
>>
>> But what you _can_ do is:
>>
>> derived(T const& v) : derived::super_t(v) {}
>>
>> I'm afraid that not every compiler supports that either, but I'm not
>> certain. It's an interesting thought. I'll put it in the queue of
>> iterator library issues I'm working on.
>>
> Sounds good!
> FWIW the syntax above compiles ok in atleast VC7.1 and
> Comeau online (all versions).

But not Borland or CWPro8 (pro9 is fine).

I'm soliciting suggestions for the name of the member. All names with
suffixes like "_t" will be rejected, and be aware that base is
already taken for other purposes. Currently my thoughts are

        super // super
        crtp // ugly

Dave

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk