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: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 161:47:00 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,778 |