
But i am getting the following defintion for the function. basic_managed_shared_memory (open_or_create_t open_or_create, const char *name, std::size_t size, const void *addr = 0) : base_t() , base2_t(open_or_create, name, size, read_write, addr, create_open_func_t(get_this_pointer(), detail::DoOpenOrCreate)) {} I think i am using in same way. Can u suggest how it can be used in defferent way.Thanks in advance. Christoph Gysin-3 wrote:
managed_shared_memory segment(open_or_create,MySharedMemory, 999999999);
This is not a valid mode you pass to managed_shared_memory. Read man 2 open.
And btw, there is a trim() function already in boost string_algo: http://www.boost.org/doc/libs/1_40_0/doc/html/boost/algorithm/trim.html
But it doesn't behave exactly like your implementation. If you really intended that behaviour you could use: http://www.boost.org/doc/libs/1_40_0/doc/html/boost/algorithm/replace_all.ht...
Chris -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3 _______________________________________________ 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/Information-about-create_only-and-open_or_create-tp259... Sent from the Boost - Users mailing list archive at Nabble.com.