OONumerics User : |
From: Meng Xiangrui (mxr_at_[hidden])
Date: 2005-12-13 21:11:23
I think it is useful, especially for template metaprogramming, since the typename there is always long and somewhat confusable but the compiler knows what the type it is. Someone told me this:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1894.pdf
On Tue, Dec 13, 2005 at 04:41:56PM -0800, Peter Foelsche wrote:
> you may want to post such questions to
>
> news://comp.lang.c
> news://comp.lang.c++
>
>
>
> Meng Xiangrui wrote:
>
> >Hi,
> >
> > If I have declared a function
> >
> > double f(double);
> >
> > And I want to store the result into a new variable
> >
> > double p = f(2.0);
> >
> > But the compiler knows that f() will return a double type, so why
> > not use
> >
> > define p = f(2.0); // Of course, "define" is just my word
> >
> > Is this achievable?
> >
> >
> >
>
--
Best Regards,
Meng Xiangrui
.:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:.
:
: Department of Scientific & Engineering Computing,
: School of Mathematical Sciences,
: Peking University, Beijing,
: P.R.China, 100871
:
: E-mail : mxr_at_[hidden]
: Webpage : http://dsec.pku.edu.cn/~mengxr
:
.:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:..:.