T
Tony
Mathias Gaunard said:There is no way to know how the implementation works, since there are
various implementations of C++ and standard libraries, some closed-source,
and that your code should run on all of them.
I, too, don't like stuff made by others when it could have really be made
better written in another way.
This is not the case for the STL though.
Of course it is. STL it the "general purpose" thing.
The STL is just containers/iterators/algorithms.
What are you talking about then?
I mean making things templates that can be avoidably not so. "Containers
are containers". Pick your poison. It probably doesn't matter one way or
the other. Do know and use containers though, whether they are STL or not.
There may come a day when C++ cannot be used without using templates.
I want to be prepared for that day (read, jetison C++). It's just one
library
(and the associated machinery) and as long as it stays JUST that, I'm OK
with it. It's almost a language of it's own, so it only gets a small stage
of
presence (containers!) in my mind.
So is your criticism about usage of templates in iostreams?
I'm not criticizing (other than saying that templatized code is hard to read
and not fun to read or work with). YMMV.
Tony