У меня есть .h с именем FxMathFunctions.h и .cpp с именем FxMathFunctions.cpp
.h начинается так:
Код: Выделить всё
class FxMathFunctions
{
public:
FxMathFunctions();
~FxMathFunctions();
У меня есть:
Код: Выделить всё
#include "FxBasicTypes.h"
#include "FxMathFunctions.h"
FxMathFunctions::FxMathFunctions() {}
FxMathFunctions::~FxMathFunctions() {}
Код: Выделить всё
error: new types may not be defined in a return type
error: return type specification for constructor invalid
Подробнее здесь: https://stackoverflow.com/questions/319 ... urn-type-c
Мобильная версия