A reasonable answer, mblat. Thanks. Unfortunately, it's not really appropriate to my "real code" case, I must say. The literal values really do belong encapsulated and readable (for documentation purposes) inside the class. Besides, I am using dozens of CString class constants. Perhaps I should have mentioned those details. I wonder if it's just a shortcoming of the language?
-Hohn
Main Topics
Browse All Topics





by: mblatPosted on 2002-06-19 at 13:02:43ID: 7093718
class MyClass
{
public:
MyClass(const CString cs) : m_cs(cs) {}
protected:
const CString m_cs;
};
....
MyClass cl("AAAA");