mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Deprecate boost/interprocess/containers/*.hpp header:
- Change all examples and test to include <boost/container/*> - Update documentation, including current std library implementation portability regarding offset_ptr
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
#include <boost/interprocess/smart_ptr/enable_shared_from_this.hpp>
|
||||
#include <boost/interprocess/managed_shared_memory.hpp>
|
||||
#include <boost/interprocess/allocators/allocator.hpp>
|
||||
#include <boost/interprocess/containers/string.hpp>
|
||||
#include <boost/interprocess/containers/vector.hpp>
|
||||
#include <boost/container/string.hpp>
|
||||
#include <boost/container/vector.hpp>
|
||||
#include <boost/interprocess/smart_ptr/deleter.hpp>
|
||||
#include <boost/interprocess/smart_ptr/scoped_ptr.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
@@ -101,7 +101,7 @@ int string_shared_ptr_vector_insertion_test()
|
||||
typedef allocator<char, segment_mngr_t> char_allocator_t;
|
||||
|
||||
//A shared memory string class
|
||||
typedef basic_string<char, std::char_traits<char>, char_allocator_t> string_t;
|
||||
typedef boost::container::basic_string<char, std::char_traits<char>, char_allocator_t> string_t;
|
||||
|
||||
//A shared memory string allocator
|
||||
typedef allocator<string_t, segment_mngr_t> string_allocator_t;
|
||||
@@ -122,11 +122,11 @@ int string_shared_ptr_vector_insertion_test()
|
||||
typedef allocator<string_weak_ptr_t, segment_mngr_t > string_weak_ptr_allocator_t;
|
||||
|
||||
//A vector of shared pointers to strings (all in shared memory) and its instantiation
|
||||
typedef vector<string_shared_ptr_t, string_shared_ptr_allocator_t>
|
||||
typedef boost::container::vector<string_shared_ptr_t, string_shared_ptr_allocator_t>
|
||||
string_shared_ptr_vector_t;
|
||||
|
||||
//A vector of weak pointers to strings (all in shared memory) and its instantiation
|
||||
typedef vector<string_weak_ptr_t, string_weak_ptr_allocator_t>
|
||||
typedef boost::container::vector<string_weak_ptr_t, string_weak_ptr_allocator_t>
|
||||
string_weak_ptr_vector_t;
|
||||
|
||||
std::string process_name;
|
||||
|
||||
Reference in New Issue
Block a user