andrew clarke wrote:
> I don't think you were being serious, but I do know that the STL
> (providing vector and string) wasn't originally a feature of C++.
> (There is a huge amount of legacy C++ code floating around from the
> 1990s that doesn't use the features of the STL.)  I'm not sure if
> templates (or namespaces) were originally supported.
>   

They were not supported. Those were features added later on. I am fairly 
certain the STL itself was not originally part of C++, although by the 
time it became a draft standard it was. I am not 100% familiar with the 
history and I am too tired/lazy to google it right now, though.

It would not be difficult to create a main() function with that 
signature. One option would be to have a main() that simply wraps its 
arguments and calls the other version, or muck around in the static 
libraries included with the compiler that create argv/argc and call 
main() to begin with.

-- 
John Gaughan
http://www.jtgprogramming.org/

Reply via email to