From dd1ddab51a8a1712f31c12be2bbceada808ffb3a Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 26 Jan 2023 16:24:59 -0800 Subject: [PATCH] Remove redundant macro check in nostd::shared_ptr --- api/include/opentelemetry/nostd/shared_ptr.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/include/opentelemetry/nostd/shared_ptr.h b/api/include/opentelemetry/nostd/shared_ptr.h index 75b184f61c..4f7dd86bb4 100644 --- a/api/include/opentelemetry/nostd/shared_ptr.h +++ b/api/include/opentelemetry/nostd/shared_ptr.h @@ -103,13 +103,11 @@ class shared_ptr new (buffer_.data) shared_ptr_wrapper{std::move(ptr_)}; } -# ifndef HAVE_CPP_STDLIB shared_ptr(std::unique_ptr &&other) noexcept { std::shared_ptr ptr_(other.release()); new (buffer_.data) shared_ptr_wrapper{std::move(ptr_)}; } -# endif ~shared_ptr() { wrapper().~shared_ptr_wrapper(); }