Boost logo

Ublas :

From: Nico Galoppo (nico_at_[hidden])
Date: 2006-10-13 10:11:15


Gunter Winkler wrote:

> The problem is, that the value type of the vector adaptor is (const double)
> and norm_1 tries to use it as type of the temporary. One should not use
> real_type as type for temporary results, but something like
>
> remove_const< real_type >
>
> Does any one know the correct syntax or type lib to use?
>
> mfg
> Gunter
>
> PS: the quick fix is to define NDEBUG which skips the computation of norms.

OK, I've applied this quick fix for the moment. I've found remove_const in
boost/type_traits/remove_const.hpp
(http://synopsis.fresco.org/boost/FileDetails/boost/type_traits/remove_const.hpp.html).

Are you suggesting this should be fixed in the norm_1 code?

--nico

-- 
nico galoppo von borries     |  address: 119 fidelity st., carrboro
comp. graphics phd. student  |           north carolina, 27510 USA
UNC, chapel hill             |  phone: +1 (919) 962-1898 (office)
                              |         +1 (919) 942-4388 (home)
                              |  email: nico at cs dot unc dot edu
                              |  homepage: http://www.ngaloppo.org