Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2005-10-09 05:29:47


>>Just provide alternative unit systems. Then we can all choose the ones we
>>want, when we want.
>>
>>Hows that? :-)
>
>
> template<class CoordinateUnit>
> class Widget {};
>
> ?
> Well, over my dead body ;-)
>
> And even without templates, the simpler the model, the better.
>

Take a look at win32::gui::draw::length

It isn't templated, and it allows you to specify the unit both in code,
and in script.

Best,
John

-- 
John Torjo,    Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/surfaces.html - Sky's the limit!
-- http://www.torjo.com/cb/ - Click, Build, Run!

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk