$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: jsiek_at_[hidden]
Date: 2000-01-11 15:30:21
scleary_at_[hidden] writes:
> You could use a sort of call_traits. . . :)
> Specialize for your "row" type, and the rest should be automatic -- choosing
> Vec & by default but passing your row type by value.
This might just work.
> This wouldn't work for unary functions, though, unless the template
> arguments were explicitly specified:
> template <class T>
> void negate(MTL_call_traits<T>::type x);
Right, though most unary functions only read the argument, so
they can be const&.
> Maybe a bit messy, but it's an automatic solution. :)
> -Steve
Thanks, I'll give it a try.
Cheers,
Jeremy