From 16fe54738a808bdbd44083012460b6180a485e44 Mon Sep 17 00:00:00 2001 From: Carlos Guimaraes Date: Fri, 17 Nov 2023 18:08:06 +0100 Subject: [PATCH] Remove 'using namespace std' statement. Fixes #276 --- include/zenoh-pico/collections/pointer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/zenoh-pico/collections/pointer.h b/include/zenoh-pico/collections/pointer.h index 8105be5be..d14195d84 100644 --- a/include/zenoh-pico/collections/pointer.h +++ b/include/zenoh-pico/collections/pointer.h @@ -26,7 +26,12 @@ #else #include #define z_atomic(X) std::atomic -using namespace std; +#define atomic_store_explicit std::atomic_store_explicit +#define atomic_fetch_add_explicit std::atomic_fetch_add_explicit +#define atomic_fetch_sub_explicit std::atomic_fetch_sub_explicit +#define memory_order_acquire std::memory_order_acquire +#define memory_order_release std::memory_order_release +#define memory_order_relaxed std::memory_order_relaxed #endif /*------------------ Internal Array Macros ------------------*/