[Interprocess] shared_ptr in a non-throwing mode

4 Feb
2011
4 Feb
'11
9:11 a.m.
Hi Ion (and everyone else), I'm a newbye and I have only one simple (stupid?) question: how can I construct a shared_ptr in a non-throwing mode? This example throw if there is enough space for MyType but isn't enough for my_shared_ptr: typedef managed_shared_ptr<MyType,managed_shared_memory>::type my_shared_ptr; my_shared_ptr sh_ptr = make_managed_shared_ptr( segment.construct<MyType>("object to share", std::nothrow)(), segment); Thanks Pietro Versari
5223
Age (days ago)
5223
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pietro Versari