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); + } + }; } }