14ย years, 1ย month ago
Highlights
Community contributions featuredThis seems to work: template<size_t N> class CBasicData < char[N] > // Secondary template. { std::string m_strValue; public: const char* GetMemory() { m_strValue.c_sโฆ
14ย years, 1ย month ago
14ย years, 2ย months ago
Hi All, I am trying to use c++ templates to differentiate memory handling between int,float,short,char types, and char*, char[1..n]. It works fine for primitive types e.g CBasicโฆ
14ย years, 1ย month ago
Hi All, At runtime, if I have 3 classes A, B , C, which do not have any common base class. On network I get strings "A", "B", "C". I want to createโฆ
14ย years, 2ย months ago
Hi All, I am trying to understand and use stl bind2nd, but getting compiler error. Could some one please identify as what I am doing wrong. Any help will be appreciated. Thanksโฆ
14ย years, 7ย months ago
Latest Activity
See all in DiscussionsThis seems to work: template<size_t N> class CBasicData < char[N] > // Secondary template. { std::string m_strValue; public: const char* โฆ
14ย years, 1ย month ago
Hi All, I am trying to use c++ templates to differentiate memory handling between int,float,short,char types, and char*, char[1..n]. It โฆ
14ย years, 1ย month ago
Thanks all for responses. I think factory pattern is the way to go.
14ย years, 2ย months ago