i have a class which has a template by other purposes:
template class MyClass { public: //of course public... t foo; std::string text;
the text variable in your class is private so unless you bar function is a method of the class you can't legally use it like that