|
parse error wit GCC in epoll_reactor.hpp and kqueue_reactor.hpp: msg#00004lib.boost.asio.user
When updating the asio cvs it failed to build for me in MacOS X and linux with the following error: asio/detail/kqueue_reactor.hpp: In static member function `static int asio::detail::kqueue_reactor<Own_Thread>::do_kqueue_create()': asio/detail/kqueue_reactor.hpp:514: error: parse error before `;' token The lines it refers to looks like this: asio::system_error e( asio::error_code(errno, asio::native_ecat), "kqueue"); boost::throw_exception(e); Which I believe is perfectly good C++, so I tried to insert spaces between operators to work around this (what appears to be a) parser bug. It turns out to parse just fine if that code snippet is changed to not creating a named temporary, like this: boost::throw_exception(asio::system_error( asio::error_code(errno, asio::native_ecat), "kqueue")); On MacOS X I used Apple's GCC 3.3 and on linux I used GCC 3.3.6 On linux I got the same error on the equivalent code in epoll_reactor.hpp -- Arvid Norberg ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: handling disk IO within asio programs: 00004, Jose |
|---|---|
| Next by Date: | Re: parse error wit GCC in epoll_reactor.hpp and kqueue_reactor.hpp: 00004, Christopher Kohlhoff |
| Previous by Thread: | Re: handling disk IO within asio programsi: 00004, Christopher Kohlhoff |
| Next by Thread: | Re: parse error wit GCC in epoll_reactor.hpp and kqueue_reactor.hpp: 00004, Christopher Kohlhoff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |