added as_map

fixed bug: wrong iterator category for map_iterator

[SVN r82721]
This commit is contained in:
Joel de Guzman
2013-02-04 09:52:52 +00:00
parent 764a31e9f5
commit 85119dbd21
7 changed files with 156 additions and 25 deletions

View File

@ -58,6 +58,12 @@ namespace boost { namespace fusion
: base_type(begin(seq), detail::map_impl_from_iterator())
{}
template <typename Sequence>
map(Sequence& seq
, typename enable_if<traits::is_sequence<Sequence>>::type* /*dummy*/ = 0)
: base_type(begin(seq), detail::map_impl_from_iterator())
{}
template <typename First, typename ...T_>
map(First const& first, T_ const&... rest)
: base_type(first, rest...)