if (ev != static_cast<int>(io_errc::stream)
#ifdef ELAST
&& ev <= ELAST
-#endif
+#elif defined(__linux__)
+ && ev <= 4095
+#endif // ELAST
)
return __do_message::message(ev);
return string("unspecified iostream_category error");
#ifdef ELAST
if (ev > ELAST)
return string("unspecified generic_category error");
+#elif defined(__linux__)
+ if (ev > 4095)
+ return string("unspecified generic_category error");
#endif // ELAST
return __do_message::message(ev);
}
#ifdef ELAST
if (ev > ELAST)
return string("unspecified system_category error");
+#elif defined(__linux__)
+ if (ev > 4095)
+ return string("unspecified system_category error");
#endif // ELAST
return __do_message::message(ev);
}
#ifdef ELAST
if (ev > ELAST)
return error_condition(ev, system_category());
+#elif defined(__linux__)
+ if (ev > 4095)
+ return error_condition(ev, system_category());
#endif // ELAST
return error_condition(ev, generic_category());
}
std::error_condition e_cond = e_cat1.default_error_condition(5);
assert(e_cond.value() == 5);
assert(e_cond.category() == std::generic_category());
- e_cond = e_cat1.default_error_condition(500);
- assert(e_cond.value() == 500);
+ e_cond = e_cat1.default_error_condition(5000);
+ assert(e_cond.value() == 5000);
assert(e_cond.category() == std::system_category());
}