$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: scleary_at_[hidden]
Date: 2000-11-21 13:42:09
> >What about
> >call_traits<T>::param_type ?
>
> Sounds like a good suggestion. Should this also be the case for
> numeric_cast? I suspect so.
No; call_traits can't be used that way :(
It messes up function template parameter deduction. Given:
template <class Target, class Source>
Target some_cast(call_traits<Source>::param_type arg) { ... }
The compiler cannot determine the type of "Source", forcing the users to
provide *both* template arguments instead of just the first. An
unacceptable tradeoff, IMO.
-Steve