|
Boost : |
From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2005-06-09 14:20:54
"David Abrahams" <dave_at_[hidden]> wrote
> Try:
>
> template<int n> struct int_;
> template<class T> struct made { static T value; };
>
> template<class F>
> int_<sizeof( made<F&>::value () )> foo();
>
> int main()
> {
> }
The same result in VC7.1: "term does not evaluate to a function taking 0
arguments"
Regards,
Arkadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk