no more #include <iostream>

[SVN r36102]
This commit is contained in:
Joel de Guzman
2006-11-20 06:18:12 +00:00
parent 15ff870381
commit 141dac45fe
6 changed files with 8 additions and 9 deletions

View File

@ -19,9 +19,10 @@
#include <boost/type_traits/is_const.hpp> #include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/add_const.hpp> #include <boost/type_traits/add_const.hpp>
#include <boost/type_traits/add_reference.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; struct forward_traversal_tag;
template<typename Variant, typename MPLIterator> template<typename Variant, typename MPLIterator>
@ -89,14 +90,13 @@ namespace boost { namespace fusion {
call(Iterator const & it) call(Iterator const & it)
{ {
typedef typename mpl::deref<typename Iterator::iterator>::type type; 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; return *result;
it.var_ = type(); // prime the variant it.var_ = type(); // prime the variant
return *boost::get<type>(&it.var_); // no-throw! return *boost::get<type>(&it.var_); // no-throw!
} }
}; };
}; };
}} }}
#endif #endif

View File

@ -10,7 +10,7 @@
#if !defined(FUSION_IN_05052005_0121) #if !defined(FUSION_IN_05052005_0121)
#define FUSION_IN_05052005_0121 #define FUSION_IN_05052005_0121
#include <iostream> #include <istream>
#include <boost/fusion/sequence/io/detail/manip.hpp> #include <boost/fusion/sequence/io/detail/manip.hpp>
#include <boost/mpl/bool.hpp> #include <boost/mpl/bool.hpp>

View File

@ -11,7 +11,6 @@
#define FUSION_MANIP_05052005_1200 #define FUSION_MANIP_05052005_1200
#include <boost/config.hpp> #include <boost/config.hpp>
#include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
#include <cctype> #include <cctype>

View File

@ -10,7 +10,7 @@
#if !defined(FUSION_OUT_05052005_0121) #if !defined(FUSION_OUT_05052005_0121)
#define FUSION_OUT_05052005_0121 #define FUSION_OUT_05052005_0121
#include <iostream> #include <ostream>
#include <boost/fusion/sequence/io/detail/manip.hpp> #include <boost/fusion/sequence/io/detail/manip.hpp>
#include <boost/mpl/bool.hpp> #include <boost/mpl/bool.hpp>

View File

@ -10,7 +10,7 @@
#if !defined(BOOST_IN_05042005_0120) #if !defined(BOOST_IN_05042005_0120)
#define BOOST_IN_05042005_0120 #define BOOST_IN_05042005_0120
#include <iostream> #include <istream>
#include <boost/fusion/sequence/io/detail/in.hpp> #include <boost/fusion/sequence/io/detail/in.hpp>
#include <boost/fusion/support/is_sequence.hpp> #include <boost/fusion/support/is_sequence.hpp>
#include <boost/utility/enable_if.hpp> #include <boost/utility/enable_if.hpp>

View File

@ -10,7 +10,7 @@
#if !defined(BOOST_OUT_05042005_0120) #if !defined(BOOST_OUT_05042005_0120)
#define BOOST_OUT_05042005_0120 #define BOOST_OUT_05042005_0120
#include <iostream> #include <ostream>
#include <boost/fusion/sequence/io/detail/out.hpp> #include <boost/fusion/sequence/io/detail/out.hpp>
#include <boost/fusion/support/is_sequence.hpp> #include <boost/fusion/support/is_sequence.hpp>
#include <boost/utility/enable_if.hpp> #include <boost/utility/enable_if.hpp>