
10 May
2004
10 May
'04
9:13 a.m.
Hi, I an trying to make protected member defined in base class public: template<class PropertyType> class class_property { protected: PropertyType value; }; template<class PropertyType> class readwrite_property : public class_property<PropertyType> { public: typedef class_property<PropertyType> base; #if BOOST_WORKAROUND(__BORLANDC__, <= 0x570) base::value; #else using base::value; #endif }; Borland fail to compile it, stating something about an attempt to grant access to protected member. Well that's the whole point!! Any suggestions? Gennadiy.