Goes without saying thanks Prof 

On Wednesday, April 19, 2023 at 4:50:03 PM UTC+2 Wolfgang Bangerth wrote:

> 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/
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/17470a0d-c4e6-4f8c-a533-d7c8e00103c4n%40googlegroups.com.

Reply via email to