forked from boostorg/iterator
Kill off outer cv-stripping of Dereferenceable
[SVN r21696]
This commit is contained in:
committed by
Peter Dimov
parent
69df402f70
commit
ac7b14253f
@ -26,14 +26,12 @@ namespace detail
|
|||||||
|
|
||||||
template <class P>
|
template <class P>
|
||||||
struct indirect_reference
|
struct indirect_reference
|
||||||
|
: mpl::apply_if<
|
||||||
|
detail::is_incrementable<P>
|
||||||
|
, iterator_reference<P>
|
||||||
|
, detail::smart_ptr_reference<P>
|
||||||
|
>
|
||||||
{
|
{
|
||||||
typedef typename remove_cv<P>::type stripped;
|
|
||||||
|
|
||||||
typedef typename mpl::apply_if<
|
|
||||||
detail::is_incrementable<stripped>
|
|
||||||
, iterator_reference<stripped>
|
|
||||||
, detail::smart_ptr_reference<stripped>
|
|
||||||
>::type type;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
Reference in New Issue
Block a user