Boost logo

Boost :

Subject: Re: [boost] [Better Enums] More complete release - feedbackrequested
From: Peter Dimov (lists_at_[hidden])
Date: 2015-06-11 10:33:54


Sam Kellett wrote:

> I would prefer free-functions in a namespace. Something like:
>
> better_enums::from_string<Channel>("Red");

I'm not a big fan of lexical_cast, but it should be noted that if Channel
defines operator>>, the above could be spelled lexical_cast<Channel>("Red").


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