It’s 2019 and you still have to write include guards
-
-
i thought it was originally a microsoft extension, and other compilers copied microsoft? https://docs.microsoft.com/en-us/cpp/preprocessor/once?view=vs-2019 … anyway, it's definitely an MSVC oldie. You probably don't need to compile with the early-1990's version of MSVC that doesn't support it. https://en.wikipedia.org/wiki/Pragma_once#Portability …
-
another potential route is C++2a modules (http://eel.is/c++draft/module ), but that's still "work-in-progress" in clang right now
- 1 more reply
New conversation -
-
-
I've got a number of projects that get compiled with MSVC and use pragma once...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.