Код
template < typename OWNER_T > class SchedulerTaskProxy_c : public SchedulerTask_c
{ public:
typedef OWNER_T Owner_t;
SchedulerTaskProxy_c( Owner_t &art_owner ) : mrt_owner( art_owner ) {} <<Error[Pe291]: no default constructor exists for class
virtual ~SchedulerTaskProxy_c() {}
private:
virtual void timeEvent() { mrt_owner.timeEvent(); }
// SchedulerTaskProxy_c shall not be copyable. Otherwise the
// reference to the containing object would become invalid.
SchedulerTaskProxy_c( SchedulerTaskProxy_c const & );
SchedulerTaskProxy_c &operator=( SchedulerTaskProxy_c const & );
Owner_t &mrt_owner;
};
{ public:
typedef OWNER_T Owner_t;
SchedulerTaskProxy_c( Owner_t &art_owner ) : mrt_owner( art_owner ) {} <<Error[Pe291]: no default constructor exists for class
virtual ~SchedulerTaskProxy_c() {}
private:
virtual void timeEvent() { mrt_owner.timeEvent(); }
// SchedulerTaskProxy_c shall not be copyable. Otherwise the
// reference to the containing object would become invalid.
SchedulerTaskProxy_c( SchedulerTaskProxy_c const & );
SchedulerTaskProxy_c &operator=( SchedulerTaskProxy_c const & );
Owner_t &mrt_owner;
};