From 8f9781da7e4361ba5cb57c57f985c23dbe09b391 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Fri, 30 Nov 2018 15:45:02 -0600 Subject: [PATCH] Apple clang changed define to __APPLE__. Missing parens found when compiling on macOS --- FWCore/Framework/src/make_shared_noexcept_false.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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