diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
commit | bb4dd8289b351fae6b55e303f189127a394a1edd (patch) | |
tree | 77c9c35a31b1459dd7988c2448e797d142530c41 /boost/fusion/algorithm/iteration/for_each_fwd.hpp | |
parent | 1a78a62555be32868418fe52f8e330c9d0f95d5a (diff) | |
download | boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.gz boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.bz2 boost-bb4dd8289b351fae6b55e303f189127a394a1edd.zip |
Imported Upstream version 1.51.0upstream/1.51.0
Diffstat (limited to 'boost/fusion/algorithm/iteration/for_each_fwd.hpp')
-rw-r--r-- | boost/fusion/algorithm/iteration/for_each_fwd.hpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/boost/fusion/algorithm/iteration/for_each_fwd.hpp b/boost/fusion/algorithm/iteration/for_each_fwd.hpp index 544915d946..b757873e6e 100644 --- a/boost/fusion/algorithm/iteration/for_each_fwd.hpp +++ b/boost/fusion/algorithm/iteration/for_each_fwd.hpp @@ -7,6 +7,9 @@ #if !defined(BOOST_FUSION_FOR_EACH_FWD_HPP_INCLUDED) #define BOOST_FUSION_FOR_EACH_FWD_HPP_INCLUDED +#include <boost/fusion/support/is_sequence.hpp> +#include <boost/utility/enable_if.hpp> + namespace boost { namespace fusion { namespace result_of @@ -16,11 +19,21 @@ namespace boost { namespace fusion } template <typename Sequence, typename F> - void + inline + typename + enable_if< + traits::is_sequence<Sequence> + , void + >::type for_each(Sequence& seq, F const& f); template <typename Sequence, typename F> - void + inline + typename + enable_if< + traits::is_sequence<Sequence> + , void + >::type for_each(Sequence const& seq, F const& f); }} |