From 39e30217d759b7c51ae85b60332805e32447092c Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 2 May 2025 19:04:15 -0400 Subject: [PATCH] Simpler `Str <<` form. --- IOStreams/String.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IOStreams/String.h b/IOStreams/String.h index ebae45d..06b01be 100644 --- a/IOStreams/String.h +++ b/IOStreams/String.h @@ -13,6 +13,7 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: String_m inline namespace exports { class String; + enum { Str }; enum { FinishString }; @@ -48,6 +49,12 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: String_m } }; + inline String + operator << ( decltype( Str ), const Alepha::OStreamable auto &t ) + { + return String{} << t; + } + inline std::string exports::stringify( const Alepha::OStreamable auto &item, Alepha::OStreamable auto && ... params ) {