|
Boost : |
Subject: Re: [boost] Single letter template type causes errors in compile of program_options and filesystem boost libraries
From: John Phillips (phillips_at_[hidden])
Date: 2008-12-18 18:02:58
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-analysis.html
If he wants to include units, he could avoid writing his own using
MPL, and instead use the already existing boost units library.
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk