added iterator_adapter 'Category' template parameter which defaults to Iterator_::category

[SVN r74428]
This commit is contained in:
Joel de Guzman
2011-09-17 03:21:13 +00:00
parent 265bdc7342
commit 0ed54e9ea3

View File

@ -13,11 +13,10 @@
namespace boost { namespace fusion
{
template <typename Derived_, typename Iterator_>
template <typename Derived_, typename Iterator_,
typename Category = typename Iterator_::category>
struct iterator_adapter
: iterator_facade<
Derived_
, typename Iterator_::category>
: iterator_facade<Derived_, Category>
{
typedef typename
remove_const<Iterator_>::type