We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0162c4c commit c72b29dCopy full SHA for c72b29d
1 file changed
src/CorradeCompat.h
@@ -0,0 +1,18 @@
1
+#pragma once
2
+
3
+#include <Corrade/Containers/StringView.h>
4
+#include <fmt/format.h>
5
+#include <string>
6
7
+inline std::string corrade_to_std_string(Corrade::Containers::StringView view)
8
+{
9
+ return {view.data(), view.size()};
10
+}
11
12
+template <>
13
+struct fmt::formatter<Corrade::Containers::StringView> : fmt::formatter<fmt::string_view> {
14
+ auto format(Corrade::Containers::StringView value, format_context &ctx) const -> format_context::iterator
15
+ {
16
+ return fmt::formatter<fmt::string_view>::format(fmt::string_view{value.data(), value.size()}, ctx);
17
+ }
18
+};
0 commit comments