|
Boost Users : |
Subject: Re: [Boost-users] Information about create_only and open_or_create
From: manish4gupta (manish_at_[hidden])
Date: 2009-10-26 04:06:02
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.html
>
> Chris
> --
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org_at_fr33z3
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> 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-tp25902079p26055704.html Sent from the Boost - Users mailing list archive at Nabble.com.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net