From f75fd25eb3e0ba933333bae5eb79e82b8dc7a48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 9 Jul 2024 22:29:44 +0200 Subject: [PATCH] Add wrong "static" attribute to anonymous_shared_memory, it should be "inline" --- include/boost/interprocess/anonymous_shared_memory.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/interprocess/anonymous_shared_memory.hpp b/include/boost/interprocess/anonymous_shared_memory.hpp index dec6845..4e0ec61 100644 --- a/include/boost/interprocess/anonymous_shared_memory.hpp +++ b/include/boost/interprocess/anonymous_shared_memory.hpp @@ -69,7 +69,7 @@ namespace ipcdetail{ //!The function returns a mapped_region holding that segment or throws //!interprocess_exception if the function fails. //static mapped_region -static mapped_region +inline mapped_region anonymous_shared_memory(std::size_t size, void *address = 0) #if (!defined(BOOST_INTERPROCESS_WINDOWS)) {