[C++-sig] Re: Pyste suggestion: handling void * arguments
David Abrahams
dave at boost-consulting.com
Wed Oct 29 03:40:26 CET 2003
Nicodemus <nicodemus at esss.com.br> 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?
The library should never invoke undefined behavior unless the user
violates its preconditions.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list