
18 Dec
2008
18 Dec
'08
11:02 p.m.
OvermindDL1 wrote:
And here is the Boost.MPL page of exactly that kind of example; it would give them their self-documentation, as well as being typesafe, as well as helping to make sure the programmer cannot screw up and start multiplying things together that they should not do and so forth (would throw a compile error, you know, instead of their internal logic silently breaking down): http://www.boost.org/doc/libs/1_37_0/libs/mpl/doc/tutorial/dimensional-analy...
If he wants to include units, he could avoid writing his own using MPL, and instead use the already existing boost units library. John