Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Aug 7, 2025

Problem:

  • The .cpp file generated by gen_str_catalog requires headers to be supplied in order to define the enums used. If the headers are not supplied, it does not compile.

Solution:

  • Export scoped enum information sufficient to forward declare enumerations. If headers are not supplied, the .cpp file should still compile.

Note:

  • Unscoped enums cannot be forward declared.
  • Enums inside anonymous namespaces cannot be forward declared.

@elbeno elbeno force-pushed the auto-enum-log branch 2 times, most recently from fcbe3df to f0613d8 Compare August 7, 2025 05:35
Problem:
- The `.cpp` file generated by `gen_str_catalog` requires headers to be supplied
  in order to define the enums used. If the headers are not supplied, it does
  not compile.

Solution:
- Export scoped enum information sufficient to forward declare enumerations. If
  headers are not supplied, the `.cpp` file should still compile.

Note:
- Unscoped enums cannot be forward declared.
- Enums inside anonymous namespaces cannot be forward declared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants