| 1 | #include <boost/interprocess/managed_mapped_file.hpp> //Variant-II , open(), mmap()
|
|---|
| 2 | using namespace boost::interprocess;
|
|---|
| 3 | typedef boost::interprocess::managed_mapped_file::segment_manager segment_manager_t; //Variant-II
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | /*
|
|---|
| 7 |
|
|---|
| 8 | Including those 3 lines above , is like code below when Sun's compiler trying to
|
|---|
| 9 | specialize type_rebinder<int, second_rebind_type_t, 0> and it does not find it, because of int = Ptr
|
|---|
| 10 | and there is no specialization for that type
|
|---|
| 11 |
|
|---|
| 12 | Compilation command : /appl/toolbox/solarisstudio12.3/bin/CC -v -library=stdcxx4 -D_XOPEN_SOURCE=500 -I/home/uqadir/boost_1_55/boost_1_55_0/ main.cpp
|
|---|
| 13 |
|
|---|
| 14 | #include <boost/intrusive/set_hook.hpp>
|
|---|
| 15 | #include <boost/intrusive/detail/generic_hook.hpp>
|
|---|
| 16 | #include <boost/interprocess/detail/segment_manager_helper.hpp>
|
|---|
| 17 | #include <boost/intrusive/pointer_traits.hpp>
|
|---|
| 18 | #include <boost/intrusive/detail/utilities.hpp>
|
|---|
| 19 | #include <boost/intrusive/detail/memory_util.hpp>
|
|---|
| 20 |
|
|---|
| 21 | typedef boost::intrusive::bhtraits<boost::interprocess::ipcdetail::intrusive_value_type_impl< boost::intrusive::generic_hook< boost::intrusive::get_set_node_algo<boost::interprocess::offset_ptr<void, int, unsigned, 0>, 1>, boost::intrusive::default_tag, 1, 3>, char, unsigned>, boost::intrusive::rbtree_node_traits< boost::interprocess::offset_ptr<void, int, unsigned, 0>, 1>, 1, boost::intrusive::default_tag, 3 > second_rebind_type_t ;
|
|---|
| 22 |
|
|---|
| 23 | typedef boost::intrusive::detail::type_rebinder
|
|---|
| 24 | <int,
|
|---|
| 25 | second_rebind_type_t,
|
|---|
| 26 | 0>::type my_type;
|
|---|
| 27 | */
|
|---|
| 28 |
|
|---|
| 29 | main ()
|
|---|
| 30 | {
|
|---|
| 31 | }
|
|---|