mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-16 13:52:24 +02:00
no more #include <iostream>
[SVN r36102]
This commit is contained in:
@ -19,9 +19,10 @@
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#include <boost/type_traits/add_const.hpp>
|
||||
#include <boost/type_traits/add_reference.hpp>
|
||||
#include <boost/variant/get.hpp>
|
||||
|
||||
namespace boost { namespace fusion {
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
struct forward_traversal_tag;
|
||||
|
||||
template<typename Variant, typename MPLIterator>
|
||||
@ -89,14 +90,13 @@ namespace boost { namespace fusion {
|
||||
call(Iterator const & it)
|
||||
{
|
||||
typedef typename mpl::deref<typename Iterator::iterator>::type type;
|
||||
if (type* result = get<type>(&it.var_))
|
||||
if (type* result = boost::get<type>(&it.var_))
|
||||
return *result;
|
||||
it.var_ = type(); // prime the variant
|
||||
return *boost::get<type>(&it.var_); // no-throw!
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
#if !defined(FUSION_IN_05052005_0121)
|
||||
#define FUSION_IN_05052005_0121
|
||||
|
||||
#include <iostream>
|
||||
#include <istream>
|
||||
#include <boost/fusion/sequence/io/detail/manip.hpp>
|
||||
|
||||
#include <boost/mpl/bool.hpp>
|
||||
|
@ -11,7 +11,6 @@
|
||||
#define FUSION_MANIP_05052005_1200
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <cctype>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#if !defined(FUSION_OUT_05052005_0121)
|
||||
#define FUSION_OUT_05052005_0121
|
||||
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
#include <boost/fusion/sequence/io/detail/manip.hpp>
|
||||
|
||||
#include <boost/mpl/bool.hpp>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#if !defined(BOOST_IN_05042005_0120)
|
||||
#define BOOST_IN_05042005_0120
|
||||
|
||||
#include <iostream>
|
||||
#include <istream>
|
||||
#include <boost/fusion/sequence/io/detail/in.hpp>
|
||||
#include <boost/fusion/support/is_sequence.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#if !defined(BOOST_OUT_05042005_0120)
|
||||
#define BOOST_OUT_05042005_0120
|
||||
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
#include <boost/fusion/sequence/io/detail/out.hpp>
|
||||
#include <boost/fusion/support/is_sequence.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
|
Reference in New Issue
Block a user