¡@

Home 

c++ Programming Glossary: dataclass

Why doesn't this C++ template code compile?

http://stackoverflow.com/questions/1364837/why-doesnt-this-c-template-code-compile

as an error. #include iostream using namespace std class DataClass public int m_data template typename DerivedType class Base public.. int newVal m_internalData.m_data newVal int main Derived DataClass testDerived testDerived.SetInternalData 3 cout testDerived.GetInternalData.. of 'Derived InInternalType ' 1 with 1 1 InInternalType DataClass 1 1 e test generaltestprogram generaltestprogram main.cpp 35..