|
Boost : |
Subject: Re: [boost] [Better Enums] More complete release - feedback requested
From: Anton Bachin (antonbachin_at_[hidden])
Date: 2015-06-15 08:29:33
>> Better Enums is not the container, however. Itâs a class that provides access to
>> two containers, currently through _names() and _values(). Those containers do
>> have size() (a function), and begin()/end():
>
> Well, as I said, I think it makes sense to view it as a special type of map.
A secondary reason, by the way, why I didnât make enums themselves be containers
is that enums are types instead of values, whereas containers in typical C++
libraries are values.
I donât think this could be made to work:
for (auto channel : Channel) { ⦠}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk