Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
18.1 All structure or union types shall be complete at...
#1
Quote:18.1 All structure or union types shall be complete at the end of a translation unit.
A complete declaration of the structure or union shall be included within any translation unit that refers to that structure.

If my interpretation of this rule is correct then it prohibits the use of opaque pointers. (I wish to use these to hide the contents of structures, so that access is only via certain functions.)

Was the prohibition of opaque pointer use deliberate? If so what are the concerns?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)