Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-12-17 08:16:16


Yes, when I inspect the call_traits implementation, it does look like it's
roughly the same thing, although it makes some strange choices: for example,
a member pointer, which is almost certainly larger than a void*, will be
passed by value, while a long long will be passed by reference.

I find the call_traits documentation opaque enough that I am never sure
exactly what I'm getting... especially when I'm trying to write code that
works with VC6. I think I'd rather just see a specification in terms of
pseudo/meta-code:

is_pointer<T>::value || is_arithmetic<T> && sizeof(T) <= sizeof(void*)
    ? T const : T const&;

----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, December 17, 2001 7:28 AM
Subject: [boost] call_traits suggestion

>
> >I would probably call this call_traits<T>::passthru_type.
>
> Isn't that more or less the same as the existing param_type? Certainly
the
> usage example you give was one of the uses that param_type was intended
> for.
>
>
> - John Maddock
> http://ourworld.compuserve.com/homepages/john_maddock/
>
> Info: http://www.boost.org Send unsubscribe requests to:
<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