diff --git a/FWCore/Framework/src/make_shared_noexcept_false.h b/FWCore/Framework/src/make_shared_noexcept_false.h index 4500865d6b91d..cd85327abf804 100644 --- a/FWCore/Framework/src/make_shared_noexcept_false.h +++ b/FWCore/Framework/src/make_shared_noexcept_false.h @@ -4,10 +4,10 @@ namespace edm { template std::shared_ptr make_shared_noexcept_false(Args&& ... args) { -#if defined(__APPLE) +#if defined(__APPLE__) // libc++ from Apple Clang does not allow non-default destructors // in some cases the destructor uses noexcept(false). -return std::shared_ptr( new T(std::forward(args)... ); +return std::shared_ptr( new T(std::forward(args)... )); #else return std::make_shared(std::forward(args)... ); #endif