From d64bc6b9edf8ea271be41d4b99f6b324690dce2a Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Sat, 12 Oct 2019 14:50:03 +0200 Subject: [PATCH] fix dbg macro in release mode --- include/bits/soi-dbg.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/bits/soi-dbg.hpp b/include/bits/soi-dbg.hpp index d8c89aa..b116e42 100644 --- a/include/bits/soi-dbg.hpp +++ b/include/bits/soi-dbg.hpp @@ -203,7 +203,9 @@ template T &&identity(T &&t) { return std::forward(t); } } // namespace soi #ifdef SOI_RELEASE -#define dbg(...) dbg_macro::identity(__VA_ARGS__) + +#define dbg(...) ::soi::detail::identity(__VA_ARGS__) + #else #if defined(__clang__) @@ -217,6 +219,7 @@ template T &&identity(T &&t) { return std::forward(t); } #define SOI_IS_NONEMPTY(...) __VA_OPT__(1) #define SOI_DBG_IMPL_ SOI_DBG_IMPL_0 + #endif #define SOI_DBG_IMPL_0() \