Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-10-24 13:55:45


From: Peter Dimov <pdimov_at_[hidden]>
> From: "Lyell E. Haynes" <fizban_at_[hidden]>
> > Why not use a typedef approach, similar to std::string =
> > std::basic_string<char>?
> >
> > Then we could have:
> >
> > typedef constant<pi_tag, double> pi
> >
> > and in you code, you can either write:
> > v = pi;
>
> Which assigns the type pi to v?

Oops. It would have to be v = pi().

> --
> Peter Dimov
> Multi Media Ltd.
>
>
> Info: http://www.boost.org Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


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