Skip to content

Commit

Permalink
ci(WIP): add more debug dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Jun 15, 2024
1 parent 8e3488e commit e7ebef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/toml11/impl/region_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <vector>
#include <cassert>

#include <iostream>

namespace toml
{
namespace detail
Expand Down Expand Up @@ -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<difference_type>(this->first_));
const auto end = std::next(this->source_->cbegin(), static_cast<difference_type>(this->last_ ));
return ::toml::detail::make_string(begin, end);
Expand Down
1 change: 1 addition & 0 deletions include/toml11/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ parse_floating(location& loc, const context<TC>& 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
{
Expand Down

0 comments on commit e7ebef5

Please sign in to comment.