Subject: [Boost-bugs] [Boost C++ Libraries] #10042: anonymous enum problem (gcc4.4.7) in asio/completion_condition.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-11 21:11:49
#10042: anonymous enum problem (gcc4.4.7) in asio/completion_condition.hpp
------------------------------+----------------------------
Reporter: hcab14@⦠| Owner: chris_kohlhoff
Type: Patches | Status: new
Milestone: To Be Determined | Component: asio
Version: | Severity: Problem
Keywords: |
------------------------------+----------------------------
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).
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10042> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC