|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49046 - branches/bcbboost/boost/asio
From: nicola.musatti_at_[hidden]
Date: 2008-09-29 17:44:53
Author: nmusatti
Date: 2008-09-29 17:44:53 EDT (Mon, 29 Sep 2008)
New Revision: 49046
URL: http://svn.boost.org/trac/boost/changeset/49046
Log:
CodeGear patch
Text files modified:
branches/bcbboost/boost/asio/read_until.hpp | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
Modified: branches/bcbboost/boost/asio/read_until.hpp
==============================================================================
--- branches/bcbboost/boost/asio/read_until.hpp (original)
+++ branches/bcbboost/boost/asio/read_until.hpp 2008-09-29 17:44:53 EDT (Mon, 29 Sep 2008)
@@ -30,11 +30,27 @@
#include <boost/asio/basic_streambuf.hpp>
#include <boost/asio/error.hpp>
+#include <boost/detail/workaround.hpp>
+
namespace boost {
namespace asio {
namespace detail
{
+#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
+ template <typename T>
+ struct has_result_type
+ {
+ template <typename U> struct inner
+ {
+ struct big { char a[100]; };
+ static big helper(U, ...);
+ static char helper(U, typename U::result_type* = 0);
+ };
+ static const T& ref();
+ enum { value = (sizeof((inner<const T&>::helper)((ref)())) == 1) };
+ };
+#else
template <typename T>
struct has_result_type
{
@@ -44,6 +60,7 @@
static const T& ref();
enum { value = (sizeof((helper)((ref)())) == 1) };
};
+#endif
} // namespace detail
/// Type trait used to determine whether a type can be used as a match condition
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk