Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <set>
- using namespace std;
- struct A {};
- struct X
- {
- template <typename T> void set(T x) {}
- };
- struct Y : X {};
- void f()
- {
- Y y;
- A a;
- y.set<A>(a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement