Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active January 11, 2017 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save picanumber/46a99e2143537de1d1494d5a3aebfd62 to your computer and use it in GitHub Desktop.
Save picanumber/46a99e2143537de1d1494d5a3aebfd62 to your computer and use it in GitHub Desktop.
struct S {
int i;
S(int i) : i(i) {}
int size() { return 1; }
S(S const&) = delete;
S(S&&) = default;
};
int main()
{
S s1(1), s2(2);
auto sv = make_sorted_view(s1, s2, S(3));
using sv_t = decltype(sv);
using tuple_t = sv_t::tuple_t;
using tuple_t = std::tuple<S&, S&, S>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment