|
Boost : |
From: Fernando Cacciola \(Office\) (fcacciola_at_[hidden])
Date: 2002-10-24 17:09:16
----- Original Message -----
From: "Paul A. Bristow" <boost_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Thursday, October 24, 2002 5:53 PM
Subject: RE: [boost] two_pi or pi_twice?
> I thought I might get a Boost about this :-( - but do you have any other
> suggestion for how to provide an alias without duplicating code (may be
const
> double pi and/or a double pi() function so not so simple?
>
> Paul
>
Not really
A reference is the closer we can get to an identifier alias, AFAICT, but it
won't work here I think (though I should look at the exact code).
It's a pity we don't have true identifier aliases in C++. We have typename
and namespace aliases, but none for identifiers.
Fernando Cacciola
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk