You could look at the [Boost style
support](https://theboostcpplibraries.com/boost.operators) for this as well.
Also, should `cmp` be hardwired, or another template parameter provided to
specific the comparison function?
I'd also be tempted to make the template name 'Comparable', yielding
```
class A : public ts::Comparable<A> {
};
```
I wonder if you could get fancier with the ts_meta support and simply probe for
the existence of a 'cmp' function without having the class do anything at all.
[ Full content available at: https://github.com/apache/trafficserver/pull/4262 ]
This message was relayed via gitbox.apache.org for [email protected]