Protected unused_type by an ADL barrier

[SVN r51654]
This commit is contained in:
Hartmut Kaiser
2009-03-09 01:17:20 +00:00
parent 08a038ad51
commit c81456f35e

View File

@ -15,7 +15,7 @@
#define BOOST_FUSION_UNUSED_HAS_IO #define BOOST_FUSION_UNUSED_HAS_IO
namespace boost { namespace fusion namespace fusion_adl_barrier
{ {
struct unused_type struct unused_type
{ {
@ -56,6 +56,12 @@ namespace boost { namespace fusion
}; };
unused_type const unused = unused_type(); unused_type const unused = unused_type();
}
namespace boost { namespace fusion
{
using ::fusion_adl_barrier::unused_type;
using ::fusion_adl_barrier::unused;
template <typename Out> template <typename Out>
inline Out& operator<<(Out& out, unused_type const&) inline Out& operator<<(Out& out, unused_type const&)