error:reference 'm_value' cannot be declared 'mutable' [-fpermissive]

flyfishnumber1 发布于 2017/03/31 14:07
阅读 104
收藏 0

程序源码见图,在.cpp 里加了一个boost头文件就报错,不加就没问题,请问这是什么原因,我需要用boost这个头怎么解决??In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0, from /usr/include/boost/interprocess/mapped_region.hpp:20, from test.cpp:2:/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15:error:reference 'm_value' cannot be declared 'mutable' [-fpermissive] mutable T &m_value;

以下是问题补充:

@flyfishnumber1:这是在国产化系统上出现的问题,是从小红帽系统上拿过来的可用的程序 (2017/04/01 09:17)
加载中
0
f
flyfishnumber1

感觉国产化系统存在问题,需要大家的多多帮助

返回顶部
顶部