1
Şablon sınıfındaki yapıda C ++ derleyici sorunu
Aşağıdaki kod yok değil gcc veya clang derlemek. template<class T> class foo{}; template<class T> class template_class_with_struct { void my_method() { if(this->b.foo < 1); }; struct bar { long foo; } b; }; Hata mesajı: error: type/value mismatch at argument 1 in template parameter list for 'template<class T> class foo' 8 …