Re: [Echempp-devel] [Fwd: inits and ends in ExcitationFunction]
Status: Beta
Brought to you by:
berndspeiser
|
From: <ber...@t-...> - 2005-01-26 07:37:29
|
Kai Ludwig wrote: Hi, > A simpler (easier to understand) > possibility would be to use the STL vector's back() > function at that point: > > _Imax.push_back(newSeg.maximum() + _Imax.back()); > > instead of > > _Imax.push_back(newSeg.maximum() + *( _Imax.end() - 1 ) ); Indeed, that's possible, and should be safe since _Imax always contains at least one element (this is ensured by the default constructor of DIExcitationFunction<D, I>. I changed the code and this part compiles fine. However, due to the new Quantities libraries, there are some problems. I will try to resolve this as quickly as possible, and then upload the new code to the cvs server. Regards Bernd -- ======================================================================= Bernd Speiser Institut f"ur Organische Chemie Auf der Morgenstelle 18 D-72076 T"ubingen Germany phone: +49-7071-2976205 (office) +49-7071-2976242 (laboratory) fax: +49-7071-295518 e-mail: ber...@un... Internet: http://www.uni-tuebingen.de/speiser ======================================================================= |