|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-05 13:52:10
"Andrei Alexandrescu" <andrewalex_at_[hidden]> writes:
> Ah, one more point that was discussed... there was much around operator->
> and operator* which don't make sense for certain resources. With Loki's
> SmartPtr, you can disable these two functions. Granted, the error message
> would be different, such as "get_reference not found" as opposed to
> "operator* not found".
A little judiciously-applied SFINAE can fix that, though.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk