Jon Stewart on 27 Jun 2003 00:05:01 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [ALACPP] hot or not?


> I thought about implicit type conversion. operator T*() is equivalent to 
> operator->() and I can't get operator T&() to compile -- anyone know why? 
> It's what I really want. Then your MonoState usage looks like this:


Err... operator T*() is NOT equivalent to operator->(), as operator->() 
has the requirement that the pointer must be bound to a member. D'oh. It 
turns out, though, that I kind of like that guarantee.



Jon
-- 
Jon Stewart
stew1@xxxxxxxxxxx
_______________________________________________
alacpp mailing list
alacpp@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/alacpp