Hi all,
I'm looking for a way to reference fields in cascaded C structures. for example:
enum { PEER_ENABLED, PEER_DISABLED }; typedef struct { int status; int flags; } MY_PEER; typedef struct { MY_PEER peer; int more_info; ///< Only valid if ::MY_STATUS::peer::status is ::PEER_ENABLED } MY_STATUS;
returns an error:
explicit link request to 'MY_STATUS::peer::status' could not be resolved
Any hints how this could be solved?
Thanks, Martin
Log in to post a comment.
Hi all,
I'm looking for a way to reference fields in cascaded C structures. for example:
returns an error:
Any hints how this could be solved?
Thanks,
Martin