[C++-sig] Re: Pyste suggestion: handling void * arguments
David Abrahams
dave at boost-consulting.com
Sat Nov 1 07:21:22 CET 2003
"Niall Douglas" <s_sourceforge at nedprod.com> writes:
>> >If however you choose the casting route (which is technically
>> >undefined behaviour, but I can't see many modern systems
>> >differentiating between types of pointers) I can send you my altered
>> >pyste. Remember that virtual method overrides in wrapper classes will
>> > have to cast anyway no matter what.
>>
>> I don't know, "undefined behaviour" is never good. Dave, what's your
>> opinion on this?
>
> It's no more undefined than the is_polymorphic trick in type_traits.
There is absolutely no undefined behavior in is_polymorphic
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list