
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of David Abrahams Sent: Wednesday, June 07, 2006 5:37 AM To: boost@lists.boost.org Subject: Re: [boost] [review] pqs
"David A. Greene" <greened@obbligato.org> writes:
It is also, IMHO, one of the best practical examples of template metaprogramming.
I just want to clear something up about this. It's not directed at PQS in particular, but at the whole domain of dimensional analysis as an example of TMP.
Dimensional analysis is really a very poor example of what TMP can do: interesting TMP involves some generation of code that actually "does something," as in the state machine example in C++TMP or Blitz++ expression templates or Boost.Lambda. Dimensional analysis basically only adds error messages where they wouldn't otherwise have been.
Then why is it such a prominent example in the documentation?