Skip to content

Commit

Permalink
Merge pull request #11951 from davidlt/fix-priv-macros-DataFormats-Ec…
Browse files Browse the repository at this point in the history
…alDigi

DataFormats/EcalDigi: remove intrusive macros breaking libstdc++
  • Loading branch information
cmsbuild committed Oct 19, 2015
2 parents 284dfdb + ec0978f commit cf89ee4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions DataFormats/Common/interface/DataFrameContainer.h
Expand Up @@ -11,6 +11,9 @@

class TestDataFrame;

template<typename DigiCollection>
class TestEcalDigi;

namespace edm {

/** an optitimized container that linearized a "vector of vector".
Expand Down Expand Up @@ -187,6 +190,9 @@ namespace edm {
private:
//for testing
friend class ::TestDataFrame;

template<typename DigiCollection>
friend class ::TestEcalDigi;

// subdetector id (as returned by DetId::subdetId())
int m_subdetId;
Expand Down
3 changes: 1 addition & 2 deletions DataFormats/EcalDigi/test/EcalDigi_t.cpp
@@ -1,11 +1,10 @@
#include <Utilities/Testing/interface/CppUnit_testdriver.icpp>
#include <cppunit/extensions/HelperMacros.h>

#define private public
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DataFormats/Common/interface/DataFrame.h"
#include "DataFormats/Common/interface/DataFrameContainer.h"
#undef private

#include<vector>
#include<algorithm>
#include<boost/function.hpp>
Expand Down

0 comments on commit cf89ee4

Please sign in to comment.