mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
Merge pull request #48629 from SUSE/wip-fix-neorados-fmt9
neorados: compile with fmt v9 Reviewed-by: Adam C. Emerson <aemerson@redhat.com> Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
commit
f6dc0beb5e
@ -24,6 +24,11 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#if FMT_VERSION >= 90000
|
||||
#include <fmt/ostream.h>
|
||||
#endif
|
||||
|
||||
namespace neorados {
|
||||
struct Entry {
|
||||
std::string nspace;
|
||||
@ -104,4 +109,8 @@ struct hash<::neorados::Entry> {
|
||||
};
|
||||
}
|
||||
|
||||
#if FMT_VERSION >= 90000
|
||||
template <> struct fmt::formatter<neorados::Entry> : ostream_formatter {};
|
||||
#endif
|
||||
|
||||
#endif // RADOS_DECODABLE_HPP
|
||||
|
@ -293,6 +293,10 @@ const std::array commands = {
|
||||
"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]);
|
||||
|
Loading…
Reference in New Issue
Block a user