From 540e30ec184328cc5181852392aec34f27b63938 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sun, 29 Oct 2023 05:58:55 -0400 Subject: [PATCH] Auto-generated istream operators respect delimiters now. --- IOStreams/IStreamable.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IOStreams/IStreamable.h b/IOStreams/IStreamable.h index 54010f7..8b2c2c4 100644 --- a/IOStreams/IStreamable.h +++ b/IOStreams/IStreamable.h @@ -13,6 +13,8 @@ static_assert( __cplusplus > 2020'00 ); #include +#include "delimiters.h" + namespace Alepha::Hydrogen::IOStreams ::detail:: istreamable_module { inline namespace exports @@ -32,7 +34,8 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: istreamable_module const auto commentChar= line.find( "#" ); if( commentChar != std::string::npos ) line= line.substr( line.find( "#" ) ); - const auto tokens= split( line, '\t' ); + const auto delim= getFieldDelimiter( is ); + const auto tokens= split( line, delim ); auto decomposed= Alepha::Reflection::tuplizeAggregate( istreamable );