Skip to content

Instantly share code, notes, and snippets.

@njlr
Created September 19, 2017 11:33
Show Gist options
  • Select an option

  • Save njlr/92e36794897f6f52bd55d811f5deebc0 to your computer and use it in GitHub Desktop.

Select an option

Save njlr/92e36794897f6f52bd55d811f5deebc0 to your computer and use it in GitHub Desktop.
template<class ReturnType, class...Xs>
struct Concept {
 virtual ReturnType operator()(Xs...) const = 0;
  virtual ReturnType operator()(Xs...) = 0;
  virtual ~Concept() {};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment