Boost logo

Boost :

Subject: Re: [boost] [gsoc16] Can I quickly check if the below really is the best approach?
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2016-01-18 19:18:19


On 14/01/2016 00:57, Niall Douglas wrote:
> 4. The primary use case example is something like this:
>
> // At global scope, allocates no memory whatsoever
> static const constexpr static_map<int, const char *> map {
> { 5, "apple" },
> { 8, "pear" },
> { 0, "banana" },
> ...
> };

This seems at least superficially similar to the enum conversion library
that was discussed briefly last year. Have you taken a look at that?


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