Skip to content

Instantly share code, notes, and snippets.

@njlr
Created May 31, 2017 15:09
Show Gist options
  • Save njlr/3358bd67203849f18d358b1976280a27 to your computer and use it in GitHub Desktop.
Save njlr/3358bd67203849f18d358b1976280a27 to your computer and use it in GitHub Desktop.
struct BazTag : FooTag, BarTag {};
template<class L, class R,
enable_if_t<
is_same<L::tag, FooTag>::value &&
is_base_of<R::tag, BarTag>::value
> fold(L l, R r) {
return foldFB(l, r);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment