|
Boost Users : |
Subject: Re: [Boost-users] Information about create_only and open_or_create
From: Christoph Gysin (christoph.gysin_at_[hidden])
Date: 2009-10-24 05:38:18
> Â 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 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