Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Template class factory
Re: Template class factory [message #24388 is a reply to message #24386] Wed, 13 January 2010 15:13 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Already tried, doesn't work....

String const &IsA(void) { Cerr() << "\n" << typeid(*this).name() << "\n"; return myType; }


prints
11WithFactoryI4BaseE

which has nothing to do with real type.
What I could do is to store just the char*, it should be static data.

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Helper for internazionalize arrays of literals
Next Topic: Polymorphic XMLizer
Goto Forum:
  


Current Time: Fri May 10 10:20:03 CEST 2024

Total time taken to generate the page: 0.02355 seconds