Simply put, this is one of the best C++ books I have come across. It will open your eyes to what generic programming really is and how it can be done with C++.As another review states, "this book is mostly about templates". Certainly true. This book takes templates where few have dared venture. Rather than use templates as a glorifed macro system, Alexandrescu uses templates to define small code generation engines. Your...
0Report
I highly recommended this book if you are interested in generic techniques and Design PatternsThis book uses C++ and Generic programming techniques to implement GoF Design Patterns [1]. It introduces Andrei's "Generic Design Patterns Library", called "Loki". Loki's techniques are more important than the library itself and should be applicable in many other contexts. (Since the library is not yet available, I cannot comment...
0Report
First came type-safe containers and generic algorithms, and then came traits. Now, thanks to Andrei Alexandrescu's ground breaking new book "Modern C++ Design," we have policies. Policies provide a means of creating very flexible and extendable libraries with little to no run-time overhead.As an example consider the Singleton pattern. What is the lifetime of the singleton? Should it be destroyed? If so, when? What, if...
0Report
I was longing for a good book on advanced C++. First, I bought "Multi-Paradigm C++". It does have some insights but author's style is baroque to the extreme. A good cure for insomnia. Then I bought "Generative Programming". I found it too much of a PhD thesis garnished with too much fluff for my taste.Not wanting to risk anymore, I borrowed this book from a friend... to lose sleep for two nights reading it! It is the book...
0Report
I was waiting for this, and pestering bookstores for it for 2 weeks before it arrived. And it still exceeded my expectations. Note: The author was partly responsible for the C++ ScopeGuard library - an amazing, essential piece of code.For any C++ engineers using reference counting (that'll be all of us, then), the amazingly configurable SmartPtr and the SmallObjectAllocator are instantly worth many times the price of the...
0Report