Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 5
    it is not defined you just delared it Commented Nov 8, 2021 at 8:20
  • 3
    virtual and template don't mix very well together stackoverflow.com/questions/2354210/… Commented Nov 8, 2021 at 8:21
  • Thank you for your comments. Would you recommend to implement it using CRTP? Commented Nov 8, 2021 at 8:37
  • 1
    Either provide an implementation in the base class or make it pure (virtual bool operator()(const T &first, const T &second) const = 0;) Commented Nov 8, 2021 at 8:53