Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
261 views

Use the value of strongly typed enum as index in boost::mpl::map

I am using a C++ map structure defined similar to std::map<Foo, std::any> for storing attributes of a compiler symbol table. The Foo is a strongly typed enum, such as enum class Foo {ENUM}. ...
Snow Summer's user avatar
0 votes
1 answer
1k views

Replacing Boost MPL containers with C++17 features

I have some old code based on MPL containers, using enable_if to to activate some dispatch like this: typedef boost::mpl::vector<std::int16_t, std::int32_t, int64_t, float, double, std::complex<...
Matthieu Brucher's user avatar