diff --git a/include/boost/interprocess/detail/managed_memory_impl.hpp b/include/boost/interprocess/detail/managed_memory_impl.hpp old mode 100644 new mode 100755 index 0a82230c..939dc6a9 --- a/include/boost/interprocess/detail/managed_memory_impl.hpp +++ b/include/boost/interprocess/detail/managed_memory_impl.hpp @@ -747,9 +747,9 @@ class create_open_func } } - std::size_t get_min_size() const + static std::size_t get_min_size() { - const size_type sz = m_frontend->get_segment_manager()->get_min_size(); + const size_type sz = BasicManagedMemoryImpl::segment_manager::get_min_size(); if(sz > std::size_t(-1)){ //The minimum size is not representable by std::size_t BOOST_ASSERT(false); diff --git a/include/boost/interprocess/detail/managed_multi_shared_memory.hpp b/include/boost/interprocess/detail/managed_multi_shared_memory.hpp old mode 100644 new mode 100755 index 3d0ba669..68799b02 --- a/include/boost/interprocess/detail/managed_multi_shared_memory.hpp +++ b/include/boost/interprocess/detail/managed_multi_shared_memory.hpp @@ -219,9 +219,9 @@ class basic_managed_multi_shared_memory return false; } - std::size_t get_min_size() const + static std::size_t get_min_size() { - const size_type sz = mp_frontend->get_segment_manager()->get_min_size(); + const size_type sz = self_t::segment_manager::get_min_size(); if(sz > std::size_t(-1)){ //The minimum size is not representable by std::size_t BOOST_ASSERT(false); diff --git a/include/boost/interprocess/detail/managed_open_or_create_impl.hpp b/include/boost/interprocess/detail/managed_open_or_create_impl.hpp old mode 100644 new mode 100755 diff --git a/include/boost/interprocess/mapped_region.hpp b/include/boost/interprocess/mapped_region.hpp index e5eee0bf..4037a919 100644 --- a/include/boost/interprocess/mapped_region.hpp +++ b/include/boost/interprocess/mapped_region.hpp @@ -876,7 +876,7 @@ struct null_mapped_region_function bool operator()(void *, std::size_t , bool) const { return true; } - std::size_t get_min_size() const + static std::size_t get_min_size() { return 0; } }; diff --git a/include/boost/interprocess/sync/shm/named_creation_functor.hpp b/include/boost/interprocess/sync/shm/named_creation_functor.hpp index b4cc7786..137a1a8e 100644 --- a/include/boost/interprocess/sync/shm/named_creation_functor.hpp +++ b/include/boost/interprocess/sync/shm/named_creation_functor.hpp @@ -66,7 +66,7 @@ class named_creation_functor } } - std::size_t get_min_size() const + static std::size_t get_min_size() { return sizeof(T); } private: