|
|
От: | gray2008 | |
| Дата: | 16.03.11 17:18 | ||
| Оценка: | 2 (1) +2 | ||
AP>struct protocol_error : public virtual run_error
AP>{
AP> struct common_error : public virtual protocol_error {};
AP> struct timeout_error : public virtual protocol_error {};
AP> struct crc_error : public virtual protocol_error {};
AP>protected:
AP> protocol_error() : run_error() {};
AP>};
AP>AP>Помогите, пожалуйста, понять идею реализации.AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:27: error: invalid use of incomplete type ‘struct protocol_error’
AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:26: error: forward declaration of ‘struct protocol_error’
AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:28: error: invalid use of incomplete type ‘struct protocol_error’
AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:26: error: forward declaration of ‘struct protocol_error’
AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:29: error: invalid use of incomplete type ‘struct protocol_error’
AP>/home/sasha/arm/lxc_full/ecom5k/branches/dev/portlib/modules/a1800/protocol_error.h:26: error: forward declaration of ‘struct protocol_error’
struct protocol_error : public virtual run_error
{
typedef struct common_error;
typedef struct timeout_error;
typedef struct crc_error;
};
struct protocol_error::common_error : public virtual protocol_error {};
struct protocol_error::timeout_error : public virtual protocol_error {};
struct protocol_error::crc_error : public virtual protocol_error {};