Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-02-25 10:23:00


Daniel Frey wrote:
> I wasn't thinking of the user to drop things into boost, this is
> obvbiously not supported. I was thinking of this:
>
> namespace foo {
> namespace boost { // <-- Is this "allowed" by boost?
> template< typename T >
> void checked_delete( T* );
> }
>
> class A {};
> }
>
> foo::A* bar = new foo::A();
> ::boost::checked_deleter< A >()( bar );

Your example works for me. Qualified identifiers such as
boost::checked_delete disable ADL, and foo::boost::checked_delete isn't
found.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk