Boost C++ Libraries: Ticket #10042: anonymous enum problem (gcc4.4.7) in asio/completion_condition.hpp https://svn.boost.org/trac10/ticket/10042 <p> A similar problem (anonymous enum) as described in </p> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/6362"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/6362</a> </p> <p> is in asio/completion_condition.hpp (git master). </p> <p> This prevents code using asio::spawn to compile when using gcc4.4.7, e.g., asio/example/cpp03/spawn/echo_server.cpp </p> <pre class="wiki">asio&gt; git diff diff --git a/include/boost/asio/completion_condition.hpp b/include/boost/asio/completion_condition.hpp index bdc041c..372e224 100644 --- a/include/boost/asio/completion_condition.hpp +++ b/include/boost/asio/completion_condition.hpp @@ -26,7 +26,7 @@ namespace asio { namespace detail { // The default maximum number of bytes to transfer in a single operation. -enum { default_max_transfer_size = 65536 }; +enum _dummy_max_transfer_size_type_ { default_max_transfer_size = 65536 }; // Adapt result of old-style completion conditions (which had a bool result // where true indicated that the operation was complete). </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10042 Trac 1.4.3