Boost logo

Boost :

Subject: Re: [boost] Is there interest in a library for string-convertible enums?
From: Marcel Raad (raad_at_[hidden])
Date: 2014-10-28 16:47:35

Felix Uhl <felix.uhl <at>>

> I’ve written a small header-only
> library that uses Boost.Preprocessor
> and templates to ease the
> definition of named enumerations that
> are convertible to and from strings.

Sounds great!

> What features would you want from
> such a library?

Aside from the conversion to strings,
only those that enum class offers:
being able to specify the underlying
type, not being implicitly convertible
to any other type, and being able to
forward-declare them.

Boost list run by bdawes at, gregod at, cpdaniel at, john at