2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Simplify operator>>

This commit is contained in:
Peter Dimov
2026-01-04 04:06:55 +02:00
parent b24e19d64e
commit d5cf5c4656

View File

@@ -97,8 +97,7 @@ std::basic_istream<Ch, Traits>& operator>>( std::basic_istream<Ch, Traits>& is,
if( is >> tmp )
{
from_chars_error err = from_chars( tmp, tmp + 36, u ).ec;
if( BOOST_UNLIKELY( err != from_chars_error::none ) )
if( !from_chars( tmp, tmp + 36, u ) )
{
is.setstate( std::ios_base::failbit );
}