Invalid template arguments on map std::map< std::string, Stock*> &stocks
问题 I have the declaration (or similar) std::map< std::string, Stock*> &stocks; throughout my code. Eclipse does not like this and produces a "Invalid template arguments" error. Stock is declared as: class Stock { public: Stock(std::string, qbbo::Financial_status_indicator, qbbo::Security_class, qbbo::Current_trading_state, qbbo::Market_category, qbbo::Reg_sho_action); ~Stock(); void setFinancialStatusIndicator(qbbo::Financial_status_indicator financialStatusIndicator); void setSecurityClass(qbbo