fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo {};
  5.  
  6. constexpr int operator>>(Foo, Foo) {
  7. return 2;
  8. }
  9.  
  10. template <int i>
  11. struct Bar{};
  12.  
  13. int main() {
  14. Bar<operator>>(Foo{}, Foo{})> b;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty