These are chat archives for boostorg/hana

18th
Aug 2016
hia3
@hia3
Aug 18 2016 21:18
Hello there! I'd like to overload operator > for hana::string and my types (there is more than one, so it has to be a template with enable_if). The problem is that this is always ambiguous. My question is - shouldn't this https://github.com/boostorg/hana/blob/master/include/boost/hana/detail/operators/orderable.hpp#L38 condition be && instead of || ?
Jason Rice
@ricejasonf
Aug 18 2016 23:28
hana::less certainly requires both operands to be hana::Orderable, so I'm not sure why those are || there.
Jason Rice
@ricejasonf
Aug 18 2016 23:38
I guess they could be hana::Orderable but not necessarily both specialize hana::detail::orderable_operators.