Answer the question
In order to leave comments, you need to log in
When inheriting a class template, I get error c2760 in the constructor definition line, what is the error?
There are two class templates, the first is:
TypeSize.h
Code:
#pragma once
Code:
template <class T1>
class TypeSize
{
public:
TypeSize(T1 value);
~TypeSize();
};
Код:
#pragma once
template <class T1>
class TypeInfo : public TypeSize<T1>
{
public:
TypeInfo(T1 value) : TypeSize<T1>(value); // тут получаю C2760 синтаксическая ошибка: ожидался токен "<Нет данных>", а не "<Нет данных>"
~TypeInfo();
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question