Boost logo

Ublas :

From: Ian McCulloch (ianmcc_at_[hidden])
Date: 2005-08-25 16:37:25


Ian McCulloch wrote:

[...]

> template <typename T>
> void
> some_function(T& x) { ... }
>
> template <typename T>
> inline
> typename boost::enable_if<is_proxy_reference<T> >::type
                            ^^^^^^^^^
sorry, that should be is_mutable_proxy<T>

> some_function(T const& x)
> {
> some_function(const_cast<T&>(x));
> }
>

[...]

Cheers,
Ian