In debug mode with gcc, toml11 internal symbols are not always hidden.
Then when multiple libraries use toml11 without different settings for TOML11_ENABLE_ACCESS_CHECK, multiple instances of toml11 types can be exposed even though these types are different, which may crash.
Then the workaround is to either always enable of disable it, which is inconvenient, because either the feature is not available when needed, or it is provided when not needed, which incurs a memory cost.
Is it possible to make this feature available through a non type boolean template parameter?
basic_value<typename TC, bool access_check = false>
Or as an alternative use one field of type config to tell whether it has an access check?
In debug mode with gcc, toml11 internal symbols are not always hidden.
Then when multiple libraries use toml11 without different settings for TOML11_ENABLE_ACCESS_CHECK, multiple instances of toml11 types can be exposed even though these types are different, which may crash.
Then the workaround is to either always enable of disable it, which is inconvenient, because either the feature is not available when needed, or it is provided when not needed, which incurs a memory cost.
Is it possible to make this feature available through a non type boolean template parameter?
basic_value<typename TC, bool access_check = false>
Or as an alternative use one field of type config to tell whether it has an access check?