On 24/08/2010 23:56, Brian Davis wrote:
How do I check for the existence of a named resource in using boost interprocess without wrapping a open_only in a try catch block and waiting for the exception?
That's the only way.
Well you know that they say.... if first you don't succeed try... catch again. I sure hope that this is not standard coding practices for Boost.Interprocess. I have seen this before in the likes of Borland Builder (VCL) and Java and I consider this to be poor programming practices. I realize that boost is working to create a standard library to mirror the likes of Java... I just hope Boost does not mirror(copy) the bad practices as well. I hope this gets fixed in future releases.
I'll add this to my to-do list. What would be your proposal? Should we take in care also permission or mode (r/w) issues? Best, Ion