Printable View
Quote: Originally Posted by anon But if you have to do that, wouldn't you lose all the safety that you are after? Code: Radian r; Degree d; sqrt(r.get() * d.get()); Yes. The other option would be to wrap the math libraries to make it usable with the unit-types. I use a bunch of libraries... :/
Radian r; Degree d; sqrt(r.get() * d.get());
*ahem* Chapter 23. Boost.Units 1.0.0
Quote: Originally Posted by CornedBee *ahem* Chapter..23...Boost.Units 1.0.0 Oh yes, I should have checked Boost. What was your experience like in using that library?
I haven't. I'm just subscribed to the mailing list, so I know which new libraries appear.