简体   繁体   English

Boost进程间message_queue具有非常量get_num_msg()。 为什么?

[英]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.

相关问题 boost interprocess message_queue和fork - boost interprocess message_queue and fork boost :: interprocess :: message_queue权限被拒绝 - boost::interprocess::message_queue permission denied 使用boost :: interprocess :: message_queue多个应用程序安全吗? - Is it safe to consume a boost::interprocess::message_queue multiple applications? boost::interprocess::message_queue 在第二个进程中没有收到消息 - boost::interprocess::message_queue no message received in second process boost :: interprocess message_queue-Windows 7低完整性进程 - boost::interprocess message_queue - Windows 7 low integrity process 错误:“ size_type”不是“ boost :: interprocess :: message_queue”的成员 - error: ‘size_type’ is not a member of ‘boost::interprocess::message_queue’ boost::interprocess message_queue 性能 - 相当慢? - boost::interprocess message_queue performance - rather slow? 如何知道boost :: interprocess :: message_queue已从系统中删除? - How to get know that boost::interprocess::message_queue was removed from system? boost :: interprocess :: message_queue使用Visual C ++停止在发布模式下工作 - boost::interprocess::message_queue stops working in Release mode with visual C++ 我可以通过boost :: interprocess :: message_queue发送C ++类对象吗? - Can I send a C++ class object via boost::interprocess::message_queue?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM