GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] FairEvtFilter problem with c++11
Re: FairEvtFilter problem with c++11 [message #17518 is a reply to message #17517] Fri, 14 November 2014 12:17 Go to previous messageGo to previous message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *
Thank you for fixing the problem.

I assume that either a compiler flag or the standard behavior of gcc was changed as I found this information:


Initializing static member variables other than const int types is not standard C++ prior C++11. The gcc compiler will not warn you about this (and produce useful code nonetheless) unless you specify the -pedantic option.

Good to know that the constants can be initialised in the cxx file. I assumed that I would need to initialise them in the constructors' initialisation lists, for instance here:

: TNamed(), fEventNr(0), fVerbose(0), fTestMode(0)

Kind regards,
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TRandom() - seed
Next Topic: Reading parameter file, ROOT::delete_TFile(void*) ()
Goto Forum:

Current Time: Sat Jun 15 22:22:56 CEST 2024

Total time taken to generate the page: 0.01161 seconds