Support c_str()
for compatibility with legacy C-Style APIs
#37
Labels
enhancement
New feature or request
c_str()
for compatibility with legacy C-Style APIs
#37
Imagine a scenario like the below test. Because magic_enum returns a
string_view
, it is not compatible with C-style APIs.Can we do anything to support legacy C-style code? The below code will result in a read buffer overflow as it'll keep reading past the end of the string until it hits a null terminator.
The text was updated successfully, but these errors were encountered: