Joe wrote:
For information to all of you C++ lovers:
http://blogs.msdn.com/csharpfaq/arch.../12/88913.aspx
Template metaprogramming
C++ templates are sometimes used for a technique known as template
metaprogramming. There is no way to do this in C#.
Template metaprogramming is the standard answer to the FAQ "How do we use
C++ to crunch a lot of numbers?" That's why I answered with it. You would
use MT to write data engines, such as the innards of a Regexp system, or a
data mining engine, or a system to rotate 3D objects.
When you start a project, you cannot select your language based on asking a
newsgroup "which one is faster?" Each newsgroup will naturally declare
their own language is faster! You need to look at many other factors,
beginning with what languages you are familiar with. C++ without MT is
still faster than any C#. But the speed of C++ will not help you if you
take too long to learn the language. Depending on your project, the speed
of C# might do fine.
Next, you need to look at what libraries and tools are available, and how
close they come to your project. You need to audition these, and determine
if a solution for your problem is already available, off the shelf.
--
Phlip
http://www.oreilly.com/catalog/9780596510657/