Opened 10 years ago
#18 new enhancement
Why are there often internal and external include guards?
Reported by: | dneise | Owned by: | somebody |
---|---|---|---|
Priority: | trivial | Milestone: | milestone: |
Component: | component1 | Version: | |
Keywords: | Cc: |
Description
Often one finds external include guards like:
#ifndef MARS_MInputStreamID #include "MInputStreamID.h" #endif
While the file being included already has an internal guard
------ contents of MInputStreamID.h ------- #ifndef MARS_MInputStreamID #define MARS_MInputStreamID /* Definition of class MInputStreamID */ #endif
Is this needed by the ROOT CInt, or is it just a historical left over?
Note:
See TracTickets
for help on using tickets.