Re: Re: Re: new round

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
Alexander Nasonov wrote:
> Daniel Wallin wrote:
>>I'm sorry, but I don't understand this. What does this have to do with
>>the exception conversion thing?
> 
> There is no connection. I was probably sleeping. However, if A in my example
> is polymorphic:
> A* make_one_thousand_and_one(std::string id);
> 
> then typeid(A) and typeid(*make_one_thousand_and_one(id)) may be different.
> What is a strategy in this case?

Given T* p.
   if T is polymorphic && typeid(*p) is registered, use that
   else use typeid(T)

-- 
Daniel Wallin


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.