|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52511 - trunk/boost/fusion/support
From: hartmut.kaiser_at_[hidden]
Date: 2009-04-20 10:57:58
Author: hkaiser
Date: 2009-04-20 10:57:57 EDT (Mon, 20 Apr 2009)
New Revision: 52511
URL: http://svn.boost.org/trac/boost/changeset/52511
Log:
Trying to fix ambiguities of operator<<() for unused_type.
Text files modified:
trunk/boost/fusion/support/unused.hpp | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
Modified: trunk/boost/fusion/support/unused.hpp
==============================================================================
--- trunk/boost/fusion/support/unused.hpp (original)
+++ trunk/boost/fusion/support/unused.hpp 2009-04-20 10:57:57 EDT (Mon, 20 Apr 2009)
@@ -15,7 +15,7 @@
#define BOOST_FUSION_UNUSED_HAS_IO
-namespace fusion_adl_barrier
+namespace boost { namespace fusion
{
struct unused_type
{
@@ -56,23 +56,25 @@
};
unused_type const unused = unused_type();
-}
-namespace boost { namespace fusion
-{
- using ::fusion_adl_barrier::unused_type;
- using ::fusion_adl_barrier::unused;
+ namespace detail
+ {
+ struct unused_only
+ {
+ unused_only(unused_type const&) {}
+ };
+ }
template <typename Out>
- inline Out& operator<<(Out& out, unused_type const&)
+ inline Out& operator<<(Out& out, detail::unused_only const&)
{
return out;
}
- template <typename Out>
- inline Out& operator>>(Out& out, unused_type&)
+ template <typename In>
+ inline In& operator>>(In& in, unused_type&)
{
- return out;
+ return in;
}
}}
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