From 7e7184d0a49f2f2e57aedd3f23923a96b5af74ee Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 26 Jan 2023 17:26:06 -0800 Subject: [PATCH] Remove redundant macro check in nostd::shared_ptr (#1939) --- 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(); }