|
Ublas : |
From: Karl Meerbergen (karl.meerbergen_at_[hidden])
Date: 2006-11-30 10:37:49
As far as I understand: a closure is always passed by value (a copy is
made), which is often the only practical way to work with proxies.
Containers cannot be copied, so therefore there is a closure.
Karl
On Thu, 2006-11-30 at 13:28 +0100, Gunter Winkler wrote:
> On Wednesday 29 November 2006 23:04, Manoj Rajagopalan wrote:
>
> > closure_type and const_closure_type appear often in ublas class
> > declarations. What does closure mean and why is it required / useful?
>
> This is a quite difficult topic. I never understood the concept in all
> details, but I look at a closure as a mutable or constant reference to
> something. The idea is to have
> a) closure_type ... everything is mutable
> b) const_closure_type ... everthing is const (read: add the const qualifier
> wherever possible)
>
> Is is required or useful: I don't use it, because it never worked the way I
> thought.
>
> mfg
> Gunter
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
-- Karl Meerbergen Katholieke Universiteit Leuven Department of Computer Science Celestijnenlaan 200A B-2001 Heverlee Belgium E-mail: karl.meerbergen_at_[hidden] URL : http://www.cs.kuleuven.be/cwis/research/nalag/ Office: 200A 02.33 Phone : +32 16 327959 (direct) +32 16 327700 (secretary) Fax : +32 16 327996