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 #24390 is a reply to message #24389] Wed, 13 January 2010 15:20 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
mdelfede wrote on Wed, 13 January 2010 09:15

And if I do

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


It always output '4Base' even if the class is the derived one.
Compiler bug ?



Do you have any virtual function in Base?

Mirek
 
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 09:10:07 CEST 2024

Total time taken to generate the page: 0.02796 seconds