Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

This is one of the few uses of C++ macros that is widely accepted. It is usually called an include guardinclude guard. As an alternative, most modern compilers support #pragma once. This is much cleaner, but slightly less portable.

This is one of the few uses of C++ macros that is widely accepted. It is usually called an include guard. As an alternative, most modern compilers support #pragma once. This is much cleaner, but slightly less portable.

This is one of the few uses of C++ macros that is widely accepted. It is usually called an include guard. As an alternative, most modern compilers support #pragma once. This is much cleaner, but slightly less portable.

Source Link
Brian
  • 4.6k
  • 1
  • 25
  • 37

This is one of the few uses of C++ macros that is widely accepted. It is usually called an include guard. As an alternative, most modern compilers support #pragma once. This is much cleaner, but slightly less portable.