Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inlcude rule 19.11
#1
Rule 19.11
Double include protection. This rule is still OBL also for AC. May you provide some more detail on the rationale behind the necessity for this rules ?

best regards
Giacomo
<t></t>
Reply
#2
Rule 19.11 allows any of:

Code:
#ifdef FILE_H
#ifndef FILE_H
#if ! defined(FILE_H)
so it is possible to protect against double inclusion without breaking Rule 19.11

Does this answer your question? If not, could you provide some more information please?
<t></t>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)