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.


John Torjo,    Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- - Sky's the limit!
-- - Click, Build, Run!

Boost list run by bdawes at, gregod at, cpdaniel at, john at