|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80732 - trunk/boost/utility
From: eric_at_[hidden]
Date: 2012-09-28 04:47:37
Author: eric_niebler
Date: 2012-09-28 04:47:35 EDT (Fri, 28 Sep 2012)
New Revision: 80732
URL: http://svn.boost.org/trac/boost/changeset/80732
Log:
friendlier wrt overloaded comma
Text files modified:
trunk/boost/utility/result_of.hpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Modified: trunk/boost/utility/result_of.hpp
==============================================================================
--- trunk/boost/utility/result_of.hpp (original)
+++ trunk/boost/utility/result_of.hpp 2012-09-28 04:47:35 EDT (Fri, 28 Sep 2012)
@@ -71,15 +71,14 @@
struct result_of_private_type {};
struct result_of_weird_type {
- template<typename T>
- friend result_of_weird_type operator,(T const &, result_of_weird_type);
friend result_of_private_type operator,(result_of_private_type, result_of_weird_type);
};
typedef char result_of_yes_type; // sizeof(result_of_yes_type) == 1
typedef char (&result_of_no_type)[2]; // sizeof(result_of_no_type) == 2
-result_of_no_type result_of_is_private_type(result_of_weird_type);
+template<typename T>
+result_of_no_type result_of_is_private_type(T const &);
result_of_yes_type result_of_is_private_type(result_of_private_type);
template<typename C>
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