I have tried both but i am getting the following error message
In constructor ‘boost::interprocess_container::basic_string
]’: run.cpp:63: error: no matching function for call to ‘boost::interprocess::allocator
, boost::interprocess::iset_index> ::allocator()’ /usr/include/boost/interprocess/allocators/allocator.hpp:129: note: candidates are: boost::interprocess::allocator ::allocator(const boost::interprocess::allocator &) [with T = char, SegmentManager = boost::interprocess::segment_manager , boost::interprocess::iset_index>] /usr/include/boost/interprocess/allocators/allocator.hpp:124: note: boost::interprocess::allocator ::allocator(SegmentManager*) [with T = char, SegmentManager = boost::interprocess::segment_manager , boost::interprocess::iset_index>]
Igor R wrote:
This is ok but i have to convert string into boost string.
You mean Boost.Interprocess string.
std::string s1("test");
char_string s2(s1.begin(), s1.end()); or: char_string s2(s1.c_str()); _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://www.nabble.com/How-to-convert-std%3A%3Astring-into-basic_string-tp254... Sent from the Boost - Users mailing list archive at Nabble.com.