neorados FTBFS on openSUSE Tumbleweed which includes fmt version 9.
On the assumption it's still desirable to support building with older
versions, I've put "#if FMT_VERSION" guards around the additions here.
Signed-off-by: Tim Serong <tserong@suse.com>
#include <utility>
#include <vector>
+#include <fmt/core.h>
+#if FMT_VERSION >= 90000
+#include <fmt/ostream.h>
+#endif
+
namespace neorados {
struct Entry {
std::string nspace;
};
}
+#if FMT_VERSION >= 90000
+template <> struct fmt::formatter<neorados::Entry> : ostream_formatter {};
+#endif
+
#endif // RADOS_DECODABLE_HPP
"remove OBJECT in POOL"sv }
};
+#if FMT_VERSION >= 90000
+template <> struct fmt::formatter<boost::program_options::options_description> : ostream_formatter {};
+#endif // FMT_VERSION
+
int main(int argc, char* argv[])
{
const std::string_view prog(argv[0]);