Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

шаблонизированное наследование

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.33 sec, absolute service time: 0,5 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp: In instantiation of ‘struct A<B<float> >’:
source_file.cpp:11:8:   required from ‘struct B<float>’
source_file.cpp:20:14:   required from here
source_file.cpp:7:10: error: no type named ‘value_type’ in ‘struct B<float>’
     void foo(typename B::value_type arg) {}
          ^
source_file.cpp: In instantiation of ‘B<T>::B() [with T = float]’:
source_file.cpp:20:14:   required from here
source_file.cpp:15:21: error: ‘foo’ is not a member of ‘A<B<float> >’
         A<B<T>>::foo(T());
                     ^

        

    
                
λ
.NET NoSQL database for rapid development