79671326

Date: 2025-06-18 22:00:50
Score: 0.5
Natty:
Report link

The language just allows this situation per the commentors. You can get in trouble multiply including headers. If you don't want to a header to include twice, put this pseudocode in the header:

myheader.h:

check if myheader_included is defined using #ifndef
   define myheader_included
   rest of your header in the #ifndef

More info:

Why are #ifndef and #define used in C++ header files?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: FastAl