On Wed, 08 Oct 2003 06:28:16 GMT, Bob Nelson <bnelson@nelsonbe.com> wrote:[color=blue]
>The November 2003 edition of the ``C/C++ Users Journal'' contains a
>multi-paged advertising section for Microsoft's Visual C++. NET 2003
>product.
>
>One section focuses on the compiler as being one of the most ISO compliant
>on any platform. Overall, the ad is rather interesting and has some
>worthwhile code snippets.
>
>- The amusing part is the declaration of ``main'' in an example showing
> support for function template specialization:
>
> void main()[/color]
I thought that was amusing too. :-)
FYI, since VC++ 7.0, under /Za you get the following for such code:
warning C4326: return type of 'main' should be 'int' instead of 'void'
And everyone should use /Za by default now. In VC++ 7.x the documentation
writers also did a sweep through all the docs to get rid of "void main()".
Maybe some escaped (it's always possible to miss a few), but I hope that
it has already disappeared from the docs.
Herb
---
Herb Sutter (
www.gotw.ca)
Convener, ISO WG21 (C++ standards committee) (
www.gotw.ca/iso)
Contributing editor, C/C++ Users Journal (
www.gotw.ca/cuj)
Visual C++ architect, Microsoft (
www.gotw.ca/microsoft)