Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct X{};
- namespace N
- {
- template <class T>
- struct S
- {
- friend void operator+(X, S(*)()) {}
- };
- }
- template <class T>
- T foo()
- {
- return {};
- }
- int main()
- {
- X{} + foo<N::S<int>>;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement