Boost logo

Boost :

Subject: Re: [boost] Efficient tuple implementation
From: Larry Evans (cppljevans_at_[hidden])
Date: 2014-06-17 14:54:28


On 06/17/14 10:02, Larry Evans wrote:
[snip]
> A more complete example, which uses operators || and && to create the
> tagged tuples, is now here:
>
> https://gist.github.com/cppljevans/01e23df914916ea7d16e
>
Correction of above for the op_and is here:

https://gist.github.com/cppljevans/01e23df914916ea7d16e/68db5988826ad4fc4dad634cebc116387eb536ac

Is there some way to encapsulate op_and, or_or, false_ and true_ in
some sort of typeclass for a boolean lattice:

http://en.wikipedia.org/wiki/Boolean_algebra_%28structure%29

?

It seems if I had used such a typeclass, it would be more likely
that I would have avoided the above copy&paste error by
forcing me to be more careful.

-regards,
Larry


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