Thomas Tutone wrote:[color=blue]
> utab wrote:
>[color=green]
> > Static
> > member functions of a class can access only the static data members of
> > the same class. So this principle in mind, lets advance one step
> > further,
> >
> > lets say in a class I have a map in the private declerations of the
> > class
> >
> > private:
> > static map<string, vector<string> > m_;
> >
> > and in the public part
> >
> > public:
> >
> > static void Initialize_();
> >
> > And in the implementation file of the class, inside the Initialize_()
> > function I am trying to initialize the static map like
> >
> > m_["g"].push_back("x");
> > m_["g"].push_back("x");
> > m_["g"].push_back("z");[/color]
>
> std::map does not have a push_back member function, so the above code
> is a syntax error.[/color]
Oops - I was asleep at the wheel - I somehow missed that it was a
std::map< std::string, std::vector< std::string> >. Sorry about that.
[color=blue]
> In addition to the above error, make sure you consult FAQ section
> 10.11:
>
>
http://www.parashift.com/c++-faq-lit...html#faq-10.11[/color]
That advice still stands.
Best regards,
Tom