forked from Alepha/Alepha
We should be using sentry
in our generated istream operators.
This commit is contained in:
@ -29,6 +29,10 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: IStreamable_m
|
||||
std::istream &
|
||||
operator >> ( std::istream &is, IStreamableAggregate auto &istreamable )
|
||||
{
|
||||
std::istream::sentry sentry{ is };
|
||||
|
||||
if( not sentry ) return is;
|
||||
|
||||
std::string line;
|
||||
std::getline( is, line );
|
||||
const auto commentChar= line.find( "#" );
|
||||
|
Reference in New Issue
Block a user