Re: Template Parameter Question
On 3/13/2011 5:41 PM, Nephi Immortal wrote:
On Mar 13, 8:40 am, Victor Bazarov<v.baza...@comcast.invalid> wrote:
On 3/12/2011 11:01 AM, Nephi Immortal wrote:
[..]
I want to learn how to write overloading operators by the following
technique rules including memory management and smart pointer. Also,
I can write vector and iterate from scratch for practical purpose
before I can start to use STL.. Which book do you recommend?
C++ Templates by Vandevoorde and Josuttis, Modern C++ Design by
Alexandrescu.
And, honestly, I don't understand the need to "write vector and iterate
from scratch" before starting to use "STL". The Standard library is
there to be used, and in order to use it correctly you *don't need* to
write one from scratch yourself.
You asked a good question.
Actually, I didn't ask a question.
> Writing vector class from scratch help
you to learn how to write C++ code in a better design. It is just for
exercise practices as self-study. After you learn writing the code,
you become to be advanced programmer and joins with other programmers
to enhance better STL and Boost designs in the future.
You will have to code thousands of classes. Put them together to
become component or library or software development.
Where did this propaganda come from? Your boss or your professor? You
don't have to first learn metallurgy to become good at using a steel
hammer. You don't need to become a good gardener, a miller, or a
butcher to be a good cook. Snap out of it!
I focus studying the template and define better overloading operator
designs. I hope you understand what I mean.
No, I don't understand what you mean. Moreover, I don't think you
actually *mean* it. I think you're repeating some mantra you heard from
a person of authority, without actually thinking about it.
That's all.
V
--
I do not respond to top-posted replies, please don't ask