fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define INNER_STRUCT
  4.  
  5. class A
  6. {
  7. public:
  8. template<class T> void Func( T& ){}
  9. };
  10. #ifndef INNER_STRUCT
  11. struct Visitor
  12. {};
  13. #endif
  14. int main( void )
  15. {
  16. A a;
  17. #ifdef INNER_STRUCT
  18. struct Visitor
  19. {};
  20. #endif
  21. Visitor v;
  22. a.Func<Visitor>( v );
  23. return 0;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:22: error: no matching function for call to 'A::Func(main()::Visitor&)'
stdout
Standard output is empty