From 61c034223343231d421773358765ec4a400f1713 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 11 Mar 2026 07:49:14 -0500 Subject: [PATCH] xo-reader2 stack: expand symbol table to store typedefs + typedef utest + misc qol policy choices --- include/xo/facet/FacetRegistry.hpp | 4 ++-- include/xo/facet/obj.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/xo/facet/FacetRegistry.hpp b/include/xo/facet/FacetRegistry.hpp index eda22f5..69bfbee 100644 --- a/include/xo/facet/FacetRegistry.hpp +++ b/include/xo/facet/FacetRegistry.hpp @@ -249,7 +249,7 @@ namespace xo { template template obj - obj::to_facet() + obj::to_facet() const { if (this->data()) { if constexpr (std::is_same_v) { @@ -270,7 +270,7 @@ namespace xo { template template obj - obj::try_to_facet() noexcept + obj::try_to_facet() const noexcept { if (this->data()) { if constexpr (std::is_same_v) { diff --git a/include/xo/facet/obj.hpp b/include/xo/facet/obj.hpp index d16c776..d583431 100644 --- a/include/xo/facet/obj.hpp +++ b/include/xo/facet/obj.hpp @@ -135,13 +135,13 @@ namespace xo { * Definition in FacetRegistry.hpp, to avoid #include dependency **/ template - obj to_facet(); + obj to_facet() const; /** like to_facet(), * but on failure return empty obj instead of throwing exception **/ template - obj try_to_facet() noexcept; + obj try_to_facet() const noexcept; /** enabled when RRouter provides _preincrement. * Note we don't need this trick for comparison operators,