Some gcc versions don't like these anonymous enums.
This commit is contained in:
parent
46e00e0479
commit
a4e6078e88
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user