|
Boost : |
Subject: Re: [boost] [enums] Interest in an alternative emulation of scoped enums classes
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2011-02-28 02:04:23
Hi Vicente,
> BOOST_ENUM_CLASS_START(algae, uint8) {
> green, red, cyan
> } BOOST_ENUM_CLASS_END(algae, uint8)
>
> algae sample( algae::red );
> void func(algae);
does your lib return a textual representation for the enum, like:
algae ag( algae::green);
std::cout << ag.str() << "\n"; // prints out 'green'
Oliver
-- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk