Skip to content

Instantly share code, notes, and snippets.

@kotoji
Created July 9, 2014 19:06
Show Gist options
  • Save kotoji/2a670a8f50b2271789d1 to your computer and use it in GitHub Desktop.
Save kotoji/2a670a8f50b2271789d1 to your computer and use it in GitHub Desktop.
struct tick_private_trait_base_is_incrementable : tick::ops {
typedef tick::refines<> type;
};
struct tick_private_trait_is_incrementable;
template<class... T>
struct is_incrementable : tick::models<tick_private_trait_is_incrementable(T...)> {};
struct tick_private_trait_is_incrementable : tick::detail::base_requires, tick::ops, tick_private_trait_base_is_incrementable::type
{
template<class T>
auto requires_(T&& x) -> decltype(tick::detail::valid_expr((x++, ++x, tick::detail::void_())));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment