提交 528ea66f 编写于 作者: B Behdad Esfahbod

[algs] Fix hb_first() / hb_second()

上级 343f5a4b
......@@ -56,13 +56,13 @@ hb_pair (T1 a, T2 b) { return hb_pair_t<T1, T2> (a, b); }
static struct
{
template <typename Pair> typename Pair::first_t
operator () (const Pair& pair) { return pair.first; }
operator () (const Pair& pair) const { return pair.first; }
} hb_first;
static struct
{
template <typename Pair> typename Pair::second_t
operator () (const Pair& pair) { return pair.second; }
operator () (const Pair& pair) const { return pair.second; }
} hb_second;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册