mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-16 05:42:20 +02:00
Compare commits
3 Commits
sandbox-br
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
eb9615cac8 | |||
f0b6c8b1e2 | |||
e1ac68f526 |
@ -91,14 +91,14 @@ namespace boost { namespace fusion
|
||||
>::type
|
||||
at_c(Sequence& seq)
|
||||
{
|
||||
return at<mpl::int_<N> >(seq);
|
||||
return fusion::at<mpl::int_<N> >(seq);
|
||||
}
|
||||
|
||||
template <int N, typename Sequence>
|
||||
inline typename result_of::at_c<Sequence const, N>::type
|
||||
at_c(Sequence const& seq)
|
||||
{
|
||||
return at<mpl::int_<N> >(seq);
|
||||
return fusion::at<mpl::int_<N> >(seq);
|
||||
}
|
||||
}}
|
||||
|
||||
|
@ -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 @@ namespace fusion_adl_barrier
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
}}
|
||||
|
||||
|
Reference in New Issue
Block a user