sylar
sylar框架的环境准备
sylar 框架 linux系统 centos7,内核版本2.6.18及以上版本 gcc 9.1及以上 cmake 3.0及以上 yaml-cpp 0.6.0 及以上 boost 1.5.3 及以上 gcc 安装: sudo yum -y install bzip2 wget gcc gcc-c++ ......
error: binding reference of type ‘sylar::RWMutex&’ to ‘const RWMutexType’ {aka ‘const sylar::RWMutex’} discards qualifiers
C++编译的时候,遇到了这个错误。 翻译这个错误就是,将一个 引用类型,绑定到了一个 常量类型上面。这个是不允许的。 In file included from /home/henry/workspace/henry-sylar/tests/test_config.cpp:1: /home/henr ......