View difference between Paste ID: AvTgRdTx and Dh3jBbxb
SHOW: | | - or go back to the newest paste.
1
template <typename Type>
2
class Outer
3
    {
4
        public:
5
            template <typename InType>
6
            class Inner
7
            {
8
                public:
9
                    template <typename X>
10
                    void nested();
11
            };
12
    };
13
14
15
16
17
надо написать
18
template <typename T1, typename T2>
19
class Usage
20
    {
21
        public:
22
            void caller(Outer<T1>::Inner<T2> &obj) 
23
{ вызов obj. nested<int>(); }
24
    };