diff --git a/DataFormats/Common/interface/BasicHandle.h b/DataFormats/Common/interface/BasicHandle.h index f98f3d2e2d390..e0ec0e3fa622b 100644 --- a/DataFormats/Common/interface/BasicHandle.h +++ b/DataFormats/Common/interface/BasicHandle.h @@ -28,7 +28,6 @@ If failedToGet() returns false but isValid() is also false then no attempt #include "DataFormats/Provenance/interface/ProductID.h" #include "DataFormats/Provenance/interface/Provenance.h" #include "DataFormats/Common/interface/HandleExceptionFactory.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" #include diff --git a/DataFormats/Common/interface/DetSet.h b/DataFormats/Common/interface/DetSet.h index acf3080539195..0ab8c7d446b51 100644 --- a/DataFormats/Common/interface/DetSet.h +++ b/DataFormats/Common/interface/DetSet.h @@ -15,7 +15,6 @@ own copy of the common DetId. #include #include #include "DataFormats/Common/interface/CMS_CLASS_VERSION.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" namespace edm { typedef uint32_t det_id_type; diff --git a/DataFormats/Common/interface/Holder.h b/DataFormats/Common/interface/Holder.h index 82892965aa1f1..6b0ba22c4aeec 100644 --- a/DataFormats/Common/interface/Holder.h +++ b/DataFormats/Common/interface/Holder.h @@ -4,7 +4,6 @@ #include "DataFormats/Common/interface/CMS_CLASS_VERSION.h" #include "DataFormats/Common/interface/BaseHolder.h" #include "DataFormats/Common/interface/RefHolder.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" #include namespace edm { diff --git a/DataFormats/Common/interface/MultiAssociation.h b/DataFormats/Common/interface/MultiAssociation.h index 45fd61c7a2998..77e7d457b6cd6 100644 --- a/DataFormats/Common/interface/MultiAssociation.h +++ b/DataFormats/Common/interface/MultiAssociation.h @@ -55,7 +55,6 @@ #include #include "DataFormats/Common/interface/CMS_CLASS_VERSION.h" #include "DataFormats/Provenance/interface/ProductID.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" namespace edm { namespace helper { diff --git a/DataFormats/Common/interface/RefHolder_.h b/DataFormats/Common/interface/RefHolder_.h index 1db73550eb6bb..f7294dd82dd69 100644 --- a/DataFormats/Common/interface/RefHolder_.h +++ b/DataFormats/Common/interface/RefHolder_.h @@ -5,7 +5,6 @@ #include "DataFormats/Common/interface/RefHolderBase.h" #include "DataFormats/Provenance/interface/ProductID.h" #include "FWCore/Utilities/interface/OffsetToBase.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" #include #include diff --git a/DataFormats/Common/interface/SortedCollection.h b/DataFormats/Common/interface/SortedCollection.h index cc2f96f79b739..523109ec78500 100644 --- a/DataFormats/Common/interface/SortedCollection.h +++ b/DataFormats/Common/interface/SortedCollection.h @@ -33,8 +33,6 @@ unreliable if such duplicate entries are made. #include "DataFormats/Provenance/interface/ProductID.h" #include "FWCore/Utilities/interface/EDMException.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" - #include #include #include diff --git a/DataFormats/Common/interface/VectorHolder.h b/DataFormats/Common/interface/VectorHolder.h index da973bcc7c6a6..d61abe8d6a20c 100644 --- a/DataFormats/Common/interface/VectorHolder.h +++ b/DataFormats/Common/interface/VectorHolder.h @@ -4,7 +4,6 @@ #include "DataFormats/Common/interface/BaseVectorHolder.h" #include "DataFormats/Common/interface/Holder.h" #include -#include "FWCore/Utilities/interface/GCC11Compatibility.h" namespace edm { namespace reftobase { diff --git a/DataFormats/Common/interface/Wrapper.h b/DataFormats/Common/interface/Wrapper.h index 045dd62da5ab5..3d4cc9125abfb 100644 --- a/DataFormats/Common/interface/Wrapper.h +++ b/DataFormats/Common/interface/Wrapper.h @@ -11,7 +11,6 @@ Wrapper: A template wrapper around EDProducts to hold the product ID. #include "DataFormats/Common/interface/WrapperDetail.h" #include "DataFormats/Common/interface/CMS_CLASS_VERSION.h" #include "DataFormats/Provenance/interface/ProductID.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" #include "FWCore/Utilities/interface/Visibility.h" #include diff --git a/FWCore/Framework/test/stubs/TestBeginEndJobAnalyzer.h b/FWCore/Framework/test/stubs/TestBeginEndJobAnalyzer.h index 4d0d81edbd898..dd792799356f2 100644 --- a/FWCore/Framework/test/stubs/TestBeginEndJobAnalyzer.h +++ b/FWCore/Framework/test/stubs/TestBeginEndJobAnalyzer.h @@ -20,7 +20,6 @@ // system include files #include "FWCore/Framework/interface/EDAnalyzer.h" -#include "FWCore/Utilities/interface/GCC11Compatibility.h" // user include files // forward declarations diff --git a/FWCore/Utilities/interface/Exception.h b/FWCore/Utilities/interface/Exception.h index f09a49ef321ba..d046d9d643331 100644 --- a/FWCore/Utilities/interface/Exception.h +++ b/FWCore/Utilities/interface/Exception.h @@ -38,8 +38,9 @@ #include #include -#include "FWCore/Utilities/interface/GCC11Compatibility.h" #include "FWCore/Utilities/interface/thread_safety_macros.h" +#include "FWCore/Utilities/interface/Likely.h" +#include "FWCore/Utilities/interface/Visibility.h" namespace cms { diff --git a/FWCore/Utilities/interface/GCC11Compatibility.h b/FWCore/Utilities/interface/GCC11Compatibility.h index 66a790c42dc90..06318a3feb338 100644 --- a/FWCore/Utilities/interface/GCC11Compatibility.h +++ b/FWCore/Utilities/interface/GCC11Compatibility.h @@ -1,42 +1,4 @@ #ifndef FWCORE_GCC11COMPATIBILITY_H #define FWCORE_GCC11COMPATIBILITY_H -/* - * set of macro to control the level of comaptibility with c++11 standard - * includes also other macro more specific to gcc - - */ - -#include "FWCore/Utilities/interface/Visibility.h" -#include "FWCore/Utilities/interface/Likely.h" - -#if defined(__GCCXML__) || defined(__CINT__) -#define CMS_NOCXX11 -#endif -#if !GCC_PREREQUISITE(4, 6, 0) && !defined(__clang__) -#define CMS_NOCXX11 -#endif - -#ifndef CMS_NOCXX11 -#if GCC_PREREQUISITE(4, 7, 0) -#define GCC11_FINAL final -#define GCC11_OVERRIDE override -#elif __clang__ -// FIXME: do not know how to query for final support. It's there in any -// clang version we will ever use, so it's fine. -#define GCC11_FINAL final -#if __has_feature(cxx_override_control) -#define GCC11_OVERRIDE override -#endif -#else -#define GCC11_FINAL -#define GCC11_OVERRIDE -#endif // gcc 4.7 -#else -#define constexpr -#define noexcept -#define nullptr 0 -#define GCC11_FINAL -#define GCC11_OVERRIDE -#endif // NOCXX11 - +#warning "GCC11Compatibility.h should be replaced with Visibility.h or Likely.h" #endif // FWCORE_GCC11COMPATIBILITY_H