Boost logo

Boost Users :

Subject: Re: [Boost-users] [phoenix] v2 to v3 transition of extension mechanism
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-14 10:02:25


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AMDG

On 04/14/2011 12:45 AM, Thomas Heller wrote:
>
> Ok, this doesn't work because you are trying to value initialize a reference.
> A small workaround:
>
> namespace detail
> {
> template <typename T> T make();
> }
>
> // ...
> template<class Sig> struct result;
> template<class This, class Arg, class Cont>
> struct result<This(Arg, Cont)>{
> typedef
> decltype(cos(eval(detail::make<Arg>(),
> detail::make<Cont>())))
> type;
> };
> // ...
>

Or use boost::declval
(http://www.boost.org/libs/utility/doc/html/declval.html)

In Christ,
Steven Watanabe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNpv5xAAoJEDTBQuhymLHSQugH+gJwn+QuRPdI09nITGzK5Ndw
zoPin8uWTNw6824pocKHw7wS21i4vs3IiXNoVRR5AN9EuREWFYeqRxjVz7bQKknR
JsWxw4Hok+45IEmsCY4iMv7s33PQEpKr6jgkqZtVAI2WMsMnjnQJqrO3USKTkUMs
yatQZHDFxHKLrySLifvwk/NV8dfGKhAHew4Iw/XjlZhIw2ndV8OLb0+PgMewUcLq
8JLsGUJjzqxwIw4CBTyy/lthrwsaZxZQTsmuuYEvAykdBN6jGsl7mFyrki18PGM+
y3Vnt6ukIWFihBLvd08HpFKFrBBUuvlxfjvHS2UlL3puOJjsOwdOy29WHpbbwKI=
=8whX
-----END PGP SIGNATURE-----


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net