Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-02-05 23:06:37


John Torjo wrote:
> "For the part of the lookup using associated namespaces (3.4.2), only
> function declarations with external
> linkage found in either the template definition context or *the template
> instantiation context *are found."
> That to me sounds like a bug in como.

Note that this section is talking about associated namespaces, aka
Argument Dependent Lookup. What
the reference to the template instantiation context means, is that the
compiler will find the declarations
of functions *From namespaces associated with the argument types* as long
as those declarations exist either

a) At the point when the template is defined.
b) At the point the template is instantiated.

Although in practice (b) is a superset of (a), in theory these two
sets of declarations are distinct because of export.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at