Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
invalid access to non-static data member
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Denis Remezov, post: 1500231"] [i] I don't think that this is the case here. The compiler warns of the expression ((trie_node*)NULL)->children (twice) However, since both this and the expression *<the_above> are operands of sizeof, they are never evaluated. In particular, there is no dereferencing or access to data as the compiler thinks. Everything is well defined here. I've noticed an interesting detail: if you convert trie_node to a POD (just make all members public), the warnings will go away. I thought this might have something to do with the compiler attempting to control the usage of the offsetof macro, which is only defined for PODs. Denis[/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
invalid access to non-static data member
Top