diff --git a/include/xo/flatstring/flatstring.hpp b/include/xo/flatstring/flatstring.hpp index a332950..947d70d 100644 --- a/include/xo/flatstring/flatstring.hpp +++ b/include/xo/flatstring/flatstring.hpp @@ -636,6 +636,7 @@ namespace xo { return ((s1 <=> s2) == std::strong_ordering::equal); } ///@} + } /*namespace xo*/ /** end flatstring.hpp **/ diff --git a/include/xo/flatstring/flatstring_pretty.hpp b/include/xo/flatstring/flatstring_pretty.hpp new file mode 100644 index 0000000..2474a3a --- /dev/null +++ b/include/xo/flatstring/flatstring_pretty.hpp @@ -0,0 +1,28 @@ +/** @file flatstring_pretty.hpp + * + * Author: Roland Conybeare, Jul 2025 + **/ + +#pragma once + +#include "flatstring.hpp" +#include "flatstring_iostream.hpp" +#include "xo/indentlog/print/ppdetail_atomic.hpp" + +namespace xo { +#ifndef ppdetail_atomic + namespace print { + struct ppindentinfo; + + template + struct ppdetail> { + static bool print_pretty(const ppindentinfo & ppii, + const flatstring & x) { + return ppdetail_atomic>::print_pretty(ppii, x); + }; + }; + } +#endif +} + +/** end flatstring_pretty.hpp **/