daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct X{};
  2.  
  3. namespace N
  4. {
  5.     template <class T>
  6.     struct S
  7.     {
  8.         friend void operator+(X, S(*)()) {}
  9.     };
  10. }
  11.  
  12. template <class T>
  13.  T foo()
  14. {
  15.     return {};
  16. }
  17.  
  18.  
  19.  
  20. int main()
  21. {
  22.     X{} + foo<N::S<int>>;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top