diff --git a/include/tls_pointer.h b/include/tls_pointer.h old mode 100644 new mode 100755 index e345e57..6cf28d6 --- a/include/tls_pointer.h +++ b/include/tls_pointer.h @@ -61,7 +61,7 @@ public: template T* create(P&&... params) { - thread_local auto ptr = static_cast(get(key_)); + auto ptr = static_cast(get(key_)); if (ptr == nullptr) { ptr = new T(std::forward

(params)...); if (!set(key_, ptr)) { diff --git a/src/ipc.cpp b/src/ipc.cpp old mode 100644 new mode 100755 index ca549e4..14c7329 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include // aligned_storage_t #include #include diff --git a/src/platform/detail.h b/src/platform/detail.h old mode 100644 new mode 100755 index 6283325..d2fb294 --- a/src/platform/detail.h +++ b/src/platform/detail.h @@ -117,7 +117,7 @@ constexpr decltype(auto) static_switch(std::size_t /*i*/, std::index_sequence<>, template constexpr decltype(auto) static_switch(std::size_t i, std::index_sequence, F&& f, D&& def) { - return (i == N) ? std::forward(f)(std::integral_constant{}) : + return (i == N) ? std::forward(f)(std::integral_constant{}) : static_switch(i, std::index_sequence{}, std::forward(f), std::forward(def)); } @@ -128,7 +128,7 @@ constexpr decltype(auto) static_switch(std::size_t i, F&& f, D&& def) { template IPC_CONSTEXPR_ void static_for(std::index_sequence, F&& f) { - IPC_UNUSED_ auto expand = { (std::forward(f)(std::integral_constant{}), 0)... }; + IPC_UNUSED_ auto expand = { (std::forward(f)(std::integral_constant{}), 0)... }; } template