Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-02-25 04:24:31


"Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> wrote in message
news:c1hl7t$ls9$1_at_sea.gmane.org...
> Hi,
>
> Could anybody suggest workaround for Internal error I am getting
when trying
> to compile using Borland command line tools with following code:
>
> template<class PropertyType>
> class class_property
> {
> protected:
> PropertyType value;
> };
>
> template<class PropertyType>
> class readwrite_property : public class_property<PropertyType>
> {
> typedef class_property<PropertyType> base;
>
> using base::value; // <------- right here
> };

An access declaration seems to work:

    template<class PropertyType>
    class readwrite_property : public class_property<PropertyType>
    {
        typedef class_property<PropertyType> base;
    protected:
        class_property<PropertyType>::value;
    };

Jonathan


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