562

С++ / Templates

O chestie interesanta referitor la templates.De ce in c++ se poate de facut asha:template class ClientBase{ ...};template class SomeClass{ std::set*> m_data;};shi nu se poate asha:template class SomeClass{ std::set> m_data;}Sau, alt exempluasha merge:template class ClientFunctionInfo{ ...};template class NotifierClientBase{public: typedef ClientFunctionInfo CFI; typedef std::vector FunctionMap; FunctionMap m_map;};dar daka facem asha: template class NotifierClientBase{public: std::vector> m_map;};asha nu lucreaza nici o sula :)adika MSVC (numai pe MSVC7.1 am avut posibilitate sa testez) nu suporta template una in alta? asta e limitare de standart sau e specific la MSVC numai?
0