1
0
forked from Alepha/Alepha

Auto-generated istream operators respect delimiters now.

This commit is contained in:
2023-10-29 05:58:55 -04:00
parent c15e42034f
commit 540e30ec18

View File

@ -13,6 +13,8 @@ static_assert( __cplusplus > 2020'00 );
#include <Alepha/Reflection/tuplizeAggregate.h>
#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 );