Boost logo

Boost :

From: Michiel Salters (michiel.salters_at_[hidden])
Date: 2002-08-06 07:19:06


> -----Original Message-----
> From: Douglas Gregor [mailto:gregod_at_[hidden]]
> Sent: maandag 5 augustus 2002 16:24
> To: boost_at_[hidden]
> Subject: Re: [boost] 3-state boolean type
>

> How would you pass the name as a template parameter?

Encapsulate in naming class, template class derives from
the naming class.

template < typename Name >
  class TriBool : public Name {
 ...
};

Just a quick idea, though.

Regards,

-- 
Michiel Salters     Consultant Software Engineering
CMG RTSE1
Michiel.Salters_at_[hidden]

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