I am using boost::interprocess::message_queue and as per the definition given on http://www.boost.org/doc/libs/1_35_0/doc/html/boost/interprocess/message_queue.html
message_queue(open_only_t open_only, const char * name);
- Opens a previously created process shared message queue with name "name". If the was not previously created or there are no free resources, the function returns false.
now what i can't understand is that how a constructor is returning a value? though it states " the function returns false" but afaik message_queue is supposed to be a constructor.
and also if it do return false can i catch that in a Boolean variable?