yo/classtemplates/examples/unboundfriends.cc
raw| 1 | #include <iostream> |
| 2 | |
| 3 | template <typename Type1, typename Type2> |
| 4 | class Wrapper; |
| 5 | |
| 6 | template <typename Type> |
| 7 | class PtrVector |
| 8 | { |
| 9 | template <typename Type1, typename Type2> |
| 10 | friend |
| 11 | PtrVector<Type> Wrapper<Type1, Type2>::begin(Type1 const &t1, Type2 const &t2); |
| 12 | |
| 13 | void fun() |
| 14 | {} |
| 15 | |
| 16 | double d_d; |
| 17 | }; |
| 18 | using namespace std; |
| 19 | |
| 20 | int main(int argc, char **argv) |
| 21 | { |
| 22 | |
| 23 | } |