Доброе утро, ребята, я запускаю этот код, но получаю сообщение об ошибке: «ожидается '{' перед TEMPLATE1», в строке «brief Initialized a TEMPLATE1inate», даже если я не понимаю, зачем это нужно.
class MIXIM_API TEMPLATE1 : public cObject
{
public:
/** @brief Constant with all values set to 0. */
static const TEMPLATE1 ZERO;
public:
BasicSafetyMessage BSM;
private:
void copy(const TEMPLATE1& other) { BSM = other.BSM; }
public:
/** @brief Default constructor. */
TEMPLATE1()
: BSM {}
/** @brief Initializes a TEMPLATE1inate. */
TEMPLATE1( BasicSafetyMessage bsm )
: BSM(bsm) {}
/** @brief Initializes TEMPLATE1inate from other TEMPLATE1inate. */
TEMPLATE1(const TEMPLATE1& other)
: cObject(other) { copy(other); }
/** @brief Returns a string with the value of the TEMPLATE1inate. */
std::string info() const;
};
inline std::ostream& operator<<(std::ostream& os, const TEMPLATE1& TEMPLATE1)
{
return os << "(" << TEMPLATE1.BSM << ")";
}
inline std::string TEMPLATE1::info() const {
std::stringstream os;
os << *this;
return os.str();
}