Skip to content

Commit

Permalink
Fireworks/Core: remove intrusive macros breaking libstdc++
Browse files Browse the repository at this point in the history
We cannot redefine 'private' and 'protected' keywords via macros to e.g.
'public'. This is extremely intrusive and breaks encapsulation.

This does not work anymore with new libstdc++ libraries, because foward
delcaration of struct is implicitly private and then implementation is
under explicit private clause. Redefining 'private' only change one of
them thus creating compile-time errors in sstream.

Details in PR65899 (GCC BZ). It's WONTFIX.

Such cleanups are required for GCC 5 and above.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
  • Loading branch information
David Abdurachmanov authored and David Abdurachmanov committed Oct 19, 2015
1 parent 98490b4 commit fc43e33
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Fireworks/Core/interface/FWEventItem.h
Expand Up @@ -161,6 +161,8 @@ class FWEventItem
// ---------- member functions ---------------------------
void setEvent(const edm::EventBase* iEvent);

void setData(const edm::ObjectWithDict& ) const;

void getPrimaryData() const;
const FWGeometry* getGeom() const;
FWProxyBuilderConfiguration* getConfig() const { return m_proxyBuilderConfig; }
Expand Down Expand Up @@ -217,7 +219,6 @@ class FWEventItem
//FWEventItem(const FWEventItem&); // stop default

//const FWEventItem& operator=(const FWEventItem&); // stop default
void setData(const edm::ObjectWithDict& ) const;

void runFilter();
void handleChange();
Expand Down
2 changes: 0 additions & 2 deletions Fireworks/Core/test/unittest_changemanager.cc
Expand Up @@ -19,9 +19,7 @@

// user include files
#include "Fireworks/Core/interface/FWModelChangeManager.h"
#define private public
#include "Fireworks/Core/interface/FWEventItem.h"
#undef private
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/Track.h"

Expand Down
2 changes: 0 additions & 2 deletions Fireworks/Core/test/unittest_modelexpressionselector.cc
Expand Up @@ -19,9 +19,7 @@
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "FWCore/Utilities/interface/ObjectWithDict.h"
#define private public
#include "Fireworks/Core/interface/FWEventItem.h"
#undef private

#include "Fireworks/Core/interface/FWModelChangeManager.h"

Expand Down
2 changes: 0 additions & 2 deletions Fireworks/Core/test/unittest_selectionmanager.cc
Expand Up @@ -22,9 +22,7 @@
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "FWCore/Utilities/interface/ObjectWithDict.h"
#define private public
#include "Fireworks/Core/interface/FWEventItem.h"
#undef private

#include "Fireworks/Core/interface/FWModelChangeManager.h"

Expand Down

0 comments on commit fc43e33

Please sign in to comment.