fork download
  1. #include <iostream>
  2. using namespace std;
  3. template <template <typename...> class Wrapper>
  4. struct WrapperTraits { };
  5.  
  6. template <typename... Whatever>
  7. struct Foo {
  8. private:
  9. // I want Foo here to refer to the template, and not the current
  10. // concrete type (which is injected into the namespace by default)
  11. using Traits = WrapperTraits<Foo>;
  12. };
  13.  
  14. int main()
  15. {
  16. Foo<double> f;
  17. return 0;
  18. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty