--- Alberto Barbati <[EMAIL PROTECTED]> wrote: > or even better: > > #if _MSC_VER+0 >= 1020 > #pragma once > #endif > > But not only MS compilers have the pragma once, which is in my opinion > very useful.
IMHO a pragma once, or similar directive, is only useful in that it doesn't force you to "invent" a unique name for the included source file (because it specifies no name at all). The fact that it is useful to reduce compilation time is just a result of some compiler writers' attitude to prefer encouraging the use of non-standard features rather than e.g. recognizing the include guard idiom and optimize away the subsequent #includes (as for instance g++ does). Genny. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost