On 4/19/23 08:33, Abbas B. wrote:
> **
>
> I attached a simple .cc file that illustrates the tittle.
> Switching lines 18 and 19 leads to a segmentation fault and I would like to
> know why out of curiosity.
Abbas:
This is a C++ question. Member variables are initialized in the order in which
they are declared. If the initialization of one variable depends on another,
you need to make sure that they are initialized in the correct order, by
declaring them in the correct order.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/