[ create a new paste ] login | about

Link: http://codepad.org/anO76D0M    [ raw code | output | fork ]

C++, pasted on Feb 22:
1
2
3
4
5
6
7
8
9
10
namespace example {
  void operator+(std::pair<std::string, int>, std::list<std::deque<std::queue<ptrdiff_t> > >) {
    std::cout << "ADL looks in scope(s) of the calling function too\n";
  }

  void kitsune() {
    std::pair<std::string, int>() + std::list<std::deque<std::queue<ptrdiff_t> > >();
  }
}
int main() { example::kitsune(); }


Output:
1
ADL looks in scope(s) of the calling function too


Create a new paste based on this one


Comments: