Comments (3)
Thanks! I tried it out, works great for my use case.
from magic_enum.
Yes, good idea
from magic_enum.
@jbhelm update in master.
Now it's work
enum_cast<Color>("blue", [](char lhs, char rhs) { return std::tolower(lhs) == std::tolower(rhs); }).value() == Color::BLUE
from magic_enum.
Related Issues (20)
- Compilation fails with Visual Studio 2017 HOT 2
- Previous/next value helpers HOT 4
- enum_type_name includes the whole namespace HOT 3
- Suggest Adoption of Scorecard GitHub Action HOT 2
- Compilation issues when using the magic_enum-library in a CLI/C++-project HOT 5
- Implicit conversion from containers::bitset to bool HOT 1
- Initialize a containers::bitset with an integer HOT 5
- Support enum with unsorted integers HOT 1
- Publish to bazel central registry HOT 1
- Document magic_enum::case_insensitive
- In template: constexpr if condition is not a constant expression HOT 10
- Suggestion: consider using C++20 `source_location` utilities HOT 1
- Put the headers within a subdirectory of include
- Incorrect behaviour with clang on enums defined inside template classes HOT 2
- Incorrect enum_cast behavior HOT 1
- ranges formatting fails with fmt HOT 1
- Argument-dependent lookup results in `invoke_r` ambiguity HOT 1
- Suggestion: bitshift operators
- A dll is compileable but not available with Visual Studio 2022. HOT 1
- Enum array does not warn if initialized with too few values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magic_enum.