borland workaround needed

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 }; Gennadiy.

"Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote in message news:c1hl7t$ls9$1@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

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; };
And where is using? What does above statement mean? Gennadiy.

"Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote in message news:c1hqvt$2dv$1@sea.gmane.org...
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; };
And where is using?
What does above statement mean?
It's equivalent to using class_property<PropertyType>::value (but deprecated, see 11.3) Borland 5.5.1 will also accept protected: base::value; here. Jonathan
participants (2)
-
Gennadiy Rozental
-
Jonathan Turkanis