|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-24 11:56:29
From: "Duane Murphy" <duanemurphy_at_[hidden]>
> Is there an appropriate work around? I have been using:
>
> namespace boost
> {
> inline obj* get_pointer( obj & p ) { return &p; }
> }
>
> As this was the source of the compiler error. Is there a better work
> around?
No, this is it - at the moment. You shouldn't need many of these, hopefully.
> I am leary of a full template replacement for this because I dont
> know what the side affects would be:
>
> namespace boost
> {
> template < class T >
> inline T* get_pointer( T & r ) { return &r; }
> }
This will break a lot of things. :-)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net