Some gcc versions don't like these anonymous enums.

This commit is contained in:
Christopher Kohlhoff 2011-02-08 15:13:19 +11:00
parent 46e00e0479
commit a4e6078e88
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ class dev_poll_reactor
: public asio::detail::service_base<dev_poll_reactor>
{
public:
enum { read_op = 0, write_op = 1,
enum op_types { read_op = 0, write_op = 1,
connect_op = 1, except_op = 2, max_ops = 3 };
// Per-descriptor data.

View File

@ -41,7 +41,7 @@ class epoll_reactor
: public asio::detail::service_base<epoll_reactor>
{
public:
enum { read_op = 0, write_op = 1,
enum op_types { read_op = 0, write_op = 1,
connect_op = 1, except_op = 2, max_ops = 3 };
// Per-descriptor queues.

View File

@ -50,10 +50,10 @@ class select_reactor
{
public:
#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
enum { read_op = 0, write_op = 1, except_op = 2,
enum op_types { read_op = 0, write_op = 1, except_op = 2,
max_select_ops = 3, connect_op = 3, max_ops = 4 };
#else // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
enum { read_op = 0, write_op = 1, except_op = 2,
enum op_types { read_op = 0, write_op = 1, except_op = 2,
max_select_ops = 3, connect_op = 1, max_ops = 3 };
#endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)