From: Kevin M. <ke...@vr...> - 2001-10-10 16:59:41
|
is it possible to get a string version of the class used as a template parameter? for example if i have template <class p> class myclass { // return the string version of p static std::string getP() { return ??????; } }; if I call myclass<float>::getP(), then it should return the string "float" how to implement getP ??? @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- |