Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-10-24 08:37:19


Markus Schöpflin wrote:
> Hello,
>
> as part of its interface intrusive_ptr requires the user to supply two
> functions:
>
> void intrusive_ptr_add_ref(T * p);
> void intrusive_ptr_release(T * p);
>
> These are called from within the implementation of the intrusive_ptr
> class. When compiling intrusive_ptr_test, cxx complains that
> intrusive_ptr uses undeclared functions, because the test includes
> the header file for intrusive_ptr before declaring those two
> functions.

Are you sure that the compiler is correct? A dependent unqualified call is
resolved at instantiation time.


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