Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-07-22 15:35:59

Daniel Frey <daniel.frey_at_[hidden]> writes:

> IIUC, the 'T' that the standard mentions is the 'myclass' in Daniel
> Spangenberg's example.

You're right.

> The operators provided by X<T> should be found in T's namespace

Ah, as I understand it. They're namespace-scope friend functions in
the namespace of X, but that fact doesn't mean much because of course
you can't access them with X::....

> , so it works whether 'T' is a template-id or not

You're right. It works because the base classes of T are
"associated" in:

     struct myclass : X<myclass> {};

Dave Abrahams
Boost Consulting

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