[AGENT++] Error in mib.h defines

Jochen Katz katz at agentpp.com
Wed Apr 20 19:59:55 CEST 2005


Hi,

> The following defines in mib.h should not have a semicolon after them.  The
> semicolon prevents them from being used in set_validity().
> 
> #define LEAF_VALUE_INITIALIZED          1;
> #define LEAF_VALUE_SET                  2;

this will be fixed in the next release. Thanks!

> Also, I was wondering why #defines were used in the system instead of C++
> constants?

Well, possibly because it's easier or because it's just habbit...

Regards,
  Jochen



More information about the AGENTPP mailing list