|
Ublas : |
Subject: Re: [ublas] Is coordinate_matrixelement assignment/insertion broken in 1.42?
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2010-03-04 13:30:57
Gunter Winkler wrote:
> What is you opinion? Would it be better to have a real constant
> find_element() and require the user to call sort() before accessing
> elements by index?
In this specific case, I would prefer not to change the behavior. Whether lazy semantics in general is good or bad is difficult to say. In my personal experience, using lazy semantics in C++ often created more problems than it solved. Even the "caching" mechanisms that are sometimes really necessary often caused maintenance problems for me.
Regards,
Thomas