¡@

Home 

c++ Programming Glossary: askbase

How to allow template function to have friend(-like) access?

http://stackoverflow.com/questions/922545/how-to-allow-template-function-to-have-friend-like-access

#include iostream #include sstream #include vector class AskBase protected std string m_prompt std string m_answer virtual bool.. virtual bool validate std string a_response 0 public AskBase std string a_prompt m_prompt a_prompt std string prompt return.. s_OK 1 int ask_user template typename T class Ask public AskBase public Ask std string a_prompt AskBase a_prompt bool validate..