我试着使用Visual Studio 2010 使用boost版本1.53.0建立在Windows XP中的一个项目(这应该的问题,会解释)建设与提升ASIO
误差修改在socket_option.hpp相关类:
template <int Level, int Name> class boolean {
正如我上面提到的,这个类处理不当从ASIO的第一个版本改变了升压1.35.0
我得到这些错误:
D:\work\extern\include\boost/asio/detail/socket_option.hpp(34): error C2332: 'class' : missing tag name D:\work\extern\include\boost/asio/detail/socket_option.hpp(34): error C3306: 'boost::asio::detail::socket_option::': unnamed class template is not allowed D:\work\extern\include\boost/asio/detail/socket_option.hpp(34): error C2628: 'boost::asio::detail::socket_option::' followed by 'int' is illegal (did you forget a ';'?) D:\work\extern\include\boost/asio/detail/socket_option.hpp(35): error C2143: syntax error : missing ';' before '{' D:\work\extern\include\boost/asio/detail/socket_option.hpp(35): error C2447: '{' : missing function header (old-style formal list?)
这也给了该类别使用中的更多错误
显示您的最顶尖的密码 – PSIAlt 2013-02-12 13:14:24
代码是有点大,问题是我没有得到任何我的代码的错误引用,所有的错误来自socket_option.hpp,以及该布尔类的所有用法,例如在socket_base.hpp,tcp.hpp等 – Pinker 2013-02-12 14:20:57
我确定哪个对象导致错误..如果我从编译中排除它编译成功,奇怪的事情是,该类与套接字无关,它甚至不引用任何该文件,所以我只是改变包括升压/ asio.hpp升压/ asio/io_service。hpp(因为我只需要这个),它的工作原理,但另一个奇怪的是,我建设的另一个目标是使用这些套接字头,它编译整个asio.hpp很好.. – Pinker 2013-02-12 14:43:15