You mean the C++ standard. As far as I know, C doesn't have namespaces, so you wouldn't have to worry about using directives, now would you?
I don't particularily like it either, but I think it's preferable to using namespace std.
You mean the C++ standard. As far as I know, C doesn't have namespaces, so you wouldn't have to worry about using directives, now would you?
I don't particularily like it either, but I think it's preferable to using namespace std.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Of course it is preferable. It has the merit of at least not defeating entirely the purpose of a namespace.
If there would be something to wipe out of ones memory, that something would be using namespace std.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Still no-one answered me?Originally Posted by l2u
Can't say as I've ever dynamically allocated space for an object of a templated class, but I expect it would be something like this, assuming type t will be type double.
datalist<double> *temp = new datalist<double>;
You're only born perfect.