
25 Oct
2007
25 Oct
'07
5:49 p.m.
You can theoretically use reinterpret_cast to do that. However, you should be warned that void * hacks are extremely dangerous, and in poor taste. You should be better off, and much much safer, using templates instead. The static pointer cast may be commented out for that very reason :) mike
In offset_ptr.hpp the static_pointer_cast<> &co are commented out. Why is this? I need something of the kind to do casts from a void* to a bool*, for example.
Is there something I am missing?
Lars
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users