Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
error_code example
#include <system_error> #include <iostream> #include <string> int main() { using namespace std; error_code ec1{static_cast<int>(errc::owner_dead), system_category()}; cout << ec1.value() << " : " << ec1.message() << '\n'; error_code ec2{static_cast<int>(errc::owner_dead), generic_category()}; cout << ec2.value() << " : " << ec2.message() << '\n'; error_condition en = make_error_condition(errc::owner_dead); cout << en.value() << " : " << en.message() << '\n'; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
C++ standard library formatted input hexadecimal float without prefix or exponent test case
unordered map broken msvc
Multi Inheritance
Template function declaration to avoid usage of template in T::template f<int>()
Project
Test
Dices by GOOSE
not a parameter pack
Additional layer of indirection
Dices by GOOSE
Please log in to post a comment.