Opened 5 years ago

#10042 new Patches

anonymous enum problem (gcc4.4.7) in asio/completion_condition.hpp

Reported by: hcab14@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Severity: Problem
Keywords: Cc:

Description

A similar problem (anonymous enum) as described in

https://svn.boost.org/trac/boost/ticket/6362

is in asio/completion_condition.hpp (git master).

This prevents code using asio::spawn to compile when using gcc4.4.7, e.g., asio/example/cpp03/spawn/echo_server.cpp

asio> 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).

Change History (0)

Note: See TracTickets for help on using tickets.