[英]Boost interprocess message_queue has non const get_num_msg(). Why?
In boost 1.53 the message_queue_t has this member function: 在boost 1.53中,message_queue_t具有以下成员函数:
size_type get_num_msg();
This returns the number of messages currently stored. 这将返回当前存储的消息数。 Never throws. 永不抛出。 I don't see any reason why this can't be const. 我看不出为什么不能常量。
原来,这是一个错误,已在Boost修订#83470中修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.