Does DJGPP support namespaces? It's one of the newer aspects in the C++ standards, and I'm not too sure. Also can I get some examples on their usage? Thank you very much.
Printable View
Does DJGPP support namespaces? It's one of the newer aspects in the C++ standards, and I'm not too sure. Also can I get some examples on their usage? Thank you very much.
First I cant say for sure it does but if you can use iostream, fstream, cstdlib, cmath, ctime or any of those files without the .h then id assume that namespaces are supported since those are some of the standard files that use namespace std. Namespaces should be used to group relevent functions into a common place and also helps prevent global namespace pollution.
yes it does work. At least it did for me when I used DJGPP.