|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-17 14:28:14
----- Original Message -----
From: "Greg Colvin" <gcolvin_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, March 17, 2001 10:04 AM
Subject: Re: [boost] Re: Boost.Threads draft library submission
> From: <williamkempf_at_[hidden]>
> > ... There are
> > five styles I've seen used, each rubs me wrong for different reasons:
>
> Make that six.
>
> name: Also commonly used, short, readable, no conflicts.
Maybe one:
int f();
template <class T>
struct B {
char* f();
};
template <class T>
struct X : B<T> {
void g() {
char* p = f(); // not B<T>::f!
}
};
int main() {
X<int> x;
x.g();
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk