Skip to content

Instantly share code, notes, and snippets.

@ThePhD
Last active March 31, 2016 09:47
Show Gist options
  • Select an option

  • Save ThePhD/b90a05e267ab96d219174535d93a9ea8 to your computer and use it in GitHub Desktop.

Select an option

Save ThePhD/b90a05e267ab96d219174535d93a9ea8 to your computer and use it in GitHub Desktop.
Wat.
#include <utility>
template<typename... Args>
struct whatever {
// uncomment to break stdlib
//typedef std::index_sequence_for<Args...> name_doesnt_matter;
};
#include <tuple>
int main(){
// No effect: compiler bug?
typedef std::index_sequence_for<int, int> x;
std::tuple<const char*> r = std::tuple_cat(std::make_tuple("b"));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment