C ++ Boost Feature Comparison

I have a class that contains boost :: function as one of its arguments. I have to make this class equality comparable, but the boost :: function is not a comparable equality. Is there an easy way around this?

Thanks, Gokul.

+3
source share
1 answer

boost :: function is not eq_compare, because there is a good way to handle the fact that many functors are not eq_compare. Here's a little insight: http://www.boost.org/doc/libs/1_35_0/doc/html/function/faq.html#id690470

, , , " ", . , :

  • ditch boost:: , eq_comparable .
  • , -. , < > . , boost:: .
+2

Source: https://habr.com/ru/post/1754582/


All Articles