[M5] verify-curated-db.sh + boost recipe (header-only)
This commit is contained in:
10
scripts/curated-snippets/magic_enum.cpp
Normal file
10
scripts/curated-snippets/magic_enum.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
import std;
|
||||
|
||||
enum class Color { Red, Green, Blue };
|
||||
|
||||
int main() {
|
||||
auto n = magic_enum::enum_count<Color>();
|
||||
std::println("magic_enum ok: {} entries", n);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user