Xref: utzoo comp.lang.c:23282 comp.lang.c++:5222 gnu.g++:476 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!sun-barr!lll-winken!arisia!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c,comp.lang.c++,gnu.g++ Subject: Re: A solution to the multiple inclusion problem Keywords: #include c c++ Message-ID: <1087@odin.SGI.COM> Date: 24 Oct 89 23:03:27 GMT References: <14240@well.UUCP> Sender: news@odin.SGI.COM Distribution: comp Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 10 Why does everybody feel compelled to reinvent this wheel? The current most widley accepted solution for single inclusion is to insert a pragma into the header file: #pragma once Jonathan Shapiro Synergistic Computing Associates