提交 19e08a14 编写于 作者: B Behdad Esfahbod

[iter] Adjust source_of/sink_of

上级 c0485e32
...@@ -277,7 +277,7 @@ struct hb_is_source_of ...@@ -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 ...@@ -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 ());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册