|
Ublas : |
Subject: Re: [ublas] [bindings][traits] Type decoration
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-03-18 10:50:15
Karl Meerbergen wrote:
> In glas, I use a meta function to decide whether an argument is passed
> by value or by reference. This implies two versions of some_func to be
> written. The choice is decided by boost::enable_if.
>
> Best,
>
> Karl
Good idea. You also have presumably four variants of the function if there
are two matrices that could be decorated? I.e., 2^N variants of the
function with N decorators?
Cheers,
Rutger