[iter] Adjust source_of/sink_of

This commit is contained in:
Behdad Esfahbod 2019-05-10 21:25:07 -07:00
parent c0485e32a3
commit 19e08a1467
1 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ struct hb_is_source_of
{ {
private: private:
template <typename Iter2 = Iter, template <typename Iter2 = Iter,
hb_enable_if (hb_is_convertible (typename Iter2::item_t, const Item &))> hb_enable_if (hb_is_convertible (typename Iter2::item_t, hb_add_lvalue_reference<hb_add_const<Item>>))>
static hb_true_type impl (hb_priority<2>); static hb_true_type impl (hb_priority<2>);
template <typename Iter2 = Iter> template <typename Iter2 = Iter>
static auto impl (hb_priority<1>) -> decltype (hb_declval (Iter2) >> hb_declval (Item &), hb_true_type ()); static auto impl (hb_priority<1>) -> decltype (hb_declval (Iter2) >> hb_declval (Item &), hb_true_type ());
@ -293,7 +293,7 @@ struct hb_is_sink_of
{ {
private: private:
template <typename Iter2 = Iter, template <typename Iter2 = Iter,
hb_enable_if (hb_is_convertible (typename Iter2::item_t, Item &))> hb_enable_if (hb_is_convertible (typename Iter2::item_t, hb_add_lvalue_reference<Item>))>
static hb_true_type impl (hb_priority<2>); static hb_true_type impl (hb_priority<2>);
template <typename Iter2 = Iter> template <typename Iter2 = Iter>
static auto impl (hb_priority<1>) -> decltype (hb_declval (Iter2) << hb_declval (Item), hb_true_type ()); static auto impl (hb_priority<1>) -> decltype (hb_declval (Iter2) << hb_declval (Item), hb_true_type ());