18 #ifndef YCPCodeCompare_h
19 #define YCPCodeCompare_h
31 class YCPCodeCompare :
public std::binary_function <const YCPValue &, const YCPValue &, bool>
41 :
se1 (asym1->asEntry ()->entry ())
42 ,
se2 (asym2->asEntry ()->entry ())
48 second_argument_type b)
60 if (!ret->isBoolean ())
62 ycp2error (
"sort(): order %s evaluates to %s, which is not a boolean",
order->toString ().c_str ()
63 , ret->toString ().c_str ());
67 return ret->asBoolean ()->value ();