Open c-dilks opened 1 month ago
This is somewhat more difficult than expected:
fmt
's compile-time error catching, we must use its FMT_STRING
macro, which only accepts literals; as far as I understand, this means we need our own preprocessor macros. Note that things are easier in C++20if
/ else
blocks become a bit dodgy (because of handling semicolons and scopes ({
and }
))Logger
class exists to avoid another dependencyI'm going to leave this issue open, in case someone has a better idea than #267, or is willing to complete it correctly.
More recent versions of
fmt
can do this, but we may need to re-think howLogger
is implemented, in particular: https://github.com/JeffersonLab/iguana/blob/05347b2d9bf27a34e5d3844f45f7ad2033b78ce1/src/iguana/services/Logger.h#L119-L122