I'm using boost message_queue and I create the queue in one c++ program and use it in another program.
My problem is, that sometimes the first program doesn't run yet, but the second is running.
So when I start first program, I want to know, if the queue exists. I don't want to use message_queue::remove() because I don't want to lose some data.
The question is, how can I know if message_queue "bla_bla_queue" exists, or not?
message_queue q(open_only,"q");