From 187eae521fe736bd573994d9036fbb552151b9cf Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 6 Aug 2025 13:53:31 -0500 Subject: [PATCH] xo-object: improve GC unittest + prep to integrate w/ xo::reflect --- include/xo/indentlog/print/ppdetail_atomic.hpp | 2 +- include/xo/indentlog/print/pretty_vector.hpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/xo/indentlog/print/ppdetail_atomic.hpp b/include/xo/indentlog/print/ppdetail_atomic.hpp index dfeaf415..3f460a76 100644 --- a/include/xo/indentlog/print/ppdetail_atomic.hpp +++ b/include/xo/indentlog/print/ppdetail_atomic.hpp @@ -16,7 +16,7 @@ namespace xo { // Defining this means ppdetail_atomic is not used. // In that case where not explicitly specialized ppdetail will revert to ordinary printing for a type, // instead of giving compile-time error about missing template specialization of ppdetail. -#define ppdetail_atomic ppdetail +//#define ppdetail_atomic ppdetail struct ppindentinfo { ppindentinfo(ppstate * pps, std::uint32_t ci0, std::uint32_t indent_width, bool upto) diff --git a/include/xo/indentlog/print/pretty_vector.hpp b/include/xo/indentlog/print/pretty_vector.hpp index 6a05fe14..b22fc149 100644 --- a/include/xo/indentlog/print/pretty_vector.hpp +++ b/include/xo/indentlog/print/pretty_vector.hpp @@ -6,8 +6,11 @@ #pragma once #include "pretty.hpp" +#include "array.hpp" /*printing*/ #include "pad.hpp" #include +#include +#include namespace xo { namespace print { @@ -54,5 +57,12 @@ namespace xo { return ppdetail_vector>::print_pretty(ppii, x); } }; + + template + struct ppdetail> { + static bool print_pretty(const ppindentinfo & ppii, const std::array & x) { + return ppdetail_vector>::print_pretty(ppii, x); + } + }; } }