Trumphurst Ltd.

Submit a comment to an "Available C++ Libraries FAQ" entry

CategoryLibraries available to download (A-C)

Better Enums - Reflective enums (enum to string, iteration) with constexpr support

Better Enums is a single header file that makes your compiler generate reflective enums. These support conversion to and from string, iteration, stream operators, and have other helpful properties.

Typically, maintenance effort or external tools are required to keep enum definitions synchronized with associated string tables and other "metadata." Better Enums eliminates these needs. In addition, the output of Better Enums can be further used in your own template metaprograms and constexpr functions.

Better Enums has no dependencies beyond the standard library. It requires either C++98 with the __VA_ARGS__ extension (long supported by most major compilers), or C++11. The library is tested automatically on many versions of Clang, GCC, and MSVC, optimized for compilation speed, and thoroughly documented.

Licensing : BSD style

Do not expect an immediate response - the contents of this form will be added to a queue, which I process manually about once a week. If you don't fill in your email address correctly, you will not (obviously) get any reply at all. Other invalid information may result in a mailed request for clarification.

Enter your comment in the areas provided below. Be sure to include your name and email address.

Please don't bother trying to post spam or links to dodgy web sites - everything you post here is reviewed by a human being before being released for public viewing.

Your Name
Your Email Address

Click to submit your comment.
Up to the FAQ title page

For more information on any of Trumphurst's products and services, please

This page, and all contents, are Copyright © 1997-2021 by
Trumphurst Ltd.
The Willows
St. Martins Moor
SY10 7BH
Contact us is hosted by JumboCruiser.