You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using fmt in a library https://github.com/DARMA-tasking/vt, which can be next linked to an app, that itself uses fmt for its own purposes. We'd like to protect ourselves from any kind of ODR violations or ABI mismatch problems, or anything alike. It seems that the simplest way would be to just use our own namespace inside of the fmt namespace.
At first I wanted to simply define FMT_BEGIN_NAMESPACE to something like
We're using fmt in a library https://github.com/DARMA-tasking/vt, which can be next linked to an app, that itself uses fmt for its own purposes. We'd like to protect ourselves from any kind of ODR violations or ABI mismatch problems, or anything alike. It seems that the simplest way would be to just use our own namespace inside of the fmt namespace.
At first I wanted to simply define
FMT_BEGIN_NAMESPACE
to something likebut in
core.h
there's one place wherefmt::<version>
is explicitly usedWhat I did in the end was adding another macro, and replacing explicit references to version, with that macro
Could something like this be added to fmt, to add possibility to easily define own namespace for fmt?
For reference, here's a PR to our library with described changes:
DARMA-tasking/vt#1618
The text was updated successfully, but these errors were encountered: