lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Switch to using C++11 uniform initialization in the ctor initi


From: Vadim Zeitlin
Subject: Re: [lmi] Switch to using C++11 uniform initialization in the ctor initializer lists?
Date: Tue, 28 Aug 2018 14:53:35 +0200

On Tue, 28 Aug 2018 11:58:33 +0000 Greg Chicares <address@hidden> wrote:

[...]
GC> In 'tier_view_editor.hpp', I now think your version is better here:
GC> 
GC> inline tier_entity_adapter::tier_entity_adapter
GC>     (std::vector<double>& limits
GC>     ,std::vector<double>& values
GC>     )
GC>     :limits_ (&limits)
GC>     ,values_ (&values)
GC> 
GC> because that code just initializes a member with a (non-const) reference
GC> of the same type.

 FWIW I agree.

GC> I don't understand these files well enough to modify them extensively:
GC>   database_view_editor.cpp
GC>   multidimgrid*.?pp

 I don't claim any deep knowledge of them neither, but the changes to them
seem to be trivial, so I'm confident enough in their correctness.

GC> Therefore, if you're highly confident that the changes you've made to the
GC> product-editor code are all correct, I'm willing to cherry-pick and push
GC> your xanadu/uniform-init branch now...

 I could update my branch to remove the differences with odd/uniform_i12n
concerning the base class ctor initializers, would you like me to do this?
If not, i.e. if you prefer doing it yourself (or have perhaps already done
so?), please do commit this.

GC> >  I'd like to avoid doing white-space changes in the initializer list right
GC> > now as it risks conflicting with my other changes, so I'd prefer to commit
GC> > this one first, so that I could rebase over it and submit the PDF
GC> > pagination changes too, that I've finally finished (this is the good news;
GC> 
GC> ...and hold my odd/uniform_i12n branch back until you've submitted those
GC> pagination changes.

 There should be no problems if you commit them now too, they are related
and I think it'd be better to finish with this question once and for all.

 Thanks,
VZ


reply via email to

[Prev in Thread] Current Thread [Next in Thread]