strong_ordering fn( float a, float b )
{
partial_ordering po = a <=> b;
if( po == partial_ordering::unordered ) [[unlikely]]
throw invalid_argument( "hello world" );
return bit_cast<strong_ordering>( a <=> b );
}
;-)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 59:05:25 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,467 |
Posted today: | 1 |