Код: Выделить всё
#include
#include
using namespace std;
int main()
{
auto test = []( int exc, char const *what )
{
feclearexcept( FE_ALL_EXCEPT );
feraiseexcept( exc );
exc = fetestexcept( FE_ALL_EXCEPT );
int n = 0;
auto print = [&]( int mask, char const *what )
{
if( !(exc &mask) )
return;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79504557/how-to-trigger-exactly-only-one-sse-exception[/url]