From e7ebef57d5d463ff591c37c120a1bed93824a7ba Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 16 Jun 2024 00:41:36 +0900 Subject: [PATCH] ci(WIP): add more debug dumps --- include/toml11/impl/region_impl.hpp | 5 +++++ include/toml11/parser.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/include/toml11/impl/region_impl.hpp b/include/toml11/impl/region_impl.hpp index d586feeb..e0c085c1 100644 --- a/include/toml11/impl/region_impl.hpp +++ b/include/toml11/impl/region_impl.hpp @@ -11,6 +11,8 @@ #include #include +#include + namespace toml { namespace detail @@ -111,6 +113,9 @@ TOML11_INLINE std::string region::as_string() const { if(this->is_ok()) { + std::cerr << "region::as_string: source->size = " << this->source_->size() << std::endl; + std::cerr << "region::as_string: this->first = " << this->first_ << std::endl; + std::cerr << "region::as_string: this->last = " << this->last_ << std::endl; const auto begin = std::next(this->source_->cbegin(), static_cast(this->first_)); const auto end = std::next(this->source_->cbegin(), static_cast(this->last_ )); return ::toml::detail::make_string(begin, end); diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index b91dde6e..5ef370fd 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -476,6 +476,7 @@ parse_floating(location& loc, const context& ctx) } std::cerr << "parse_floating: hex: calling as_string" << std::endl; str = reg.as_string(); + std::cerr << "parse_floating: hex: as_string = " << str << std::endl; } else {