Boost logo

Boost :

Subject: Re: [boost] Thoughts for a GUI (Primitives) Library
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2010-09-12 01:14:32


On Fri, Sep 10, 2010 at 10:55 AM, Germán Diago <germandiago_at_[hidden]> wrote:
>
> template <class DataToShow>
> class view {
> public:
>         typedef typename generic_view_type<DataToShow>::type generic_view_t;
>
>         typedef typename concrete_view_type<generic_view_t>::type
> concrete_view_t;
> .....
> private:
>    std::unique_ptr<concrete_view_t> view_;
> };
>

generic_view_type<int>::type might need to be different in various
cases. Would you do:

generic_view_type<some_wrapper<int>>::type
or
generic_view_type<int, some_tag>::type

generic_view_type<int, ranged<0, 100, 10, 50> >::type; // 0 to 100,
steps of 10, default of 50
?

Tony


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