Boost logo

Boost :

From: Jesse Jones (jesjones_at_[hidden])
Date: 2000-09-02 17:33:44

>In message <v03110700b5d5c82f6833@[]>, Jesse Jones
><jejones_at_[hidden]> writes
>>Here's the scenario I was thinking of.
>>I have been using a struct that
>>looks like this in the framework:
>>struct SDocumentMesg {
>> uint32 message;
>> const void* data;
>>Client code could look like this:
>>Fortunately, this doesn't compile, because a conversion is first
> >required from to const void *, and then the conversion from
> >const void * to const XRect *. So, it's safe :-)

> Why? There's only one user defined conversion happening so I would
>expect it to compile. I just tried it with CodeWarrior 5.2 and it compiles....

Whoops, I take it back, it doesn't compile. Guess I'll have to brush up
on those silly conversion operators. :-)

  -- Jesse

Boost list run by bdawes at, gregod at, cpdaniel at, john at