Skip to content

Instantly share code, notes, and snippets.

View alexander-somov's full-sized avatar

Alexander Somov alexander-somov

View GitHub Profile
@alexander-somov
alexander-somov / system_error_test.cpp
Created August 27, 2017 09:26
libstdc++ system_error failure sample
#include <iostream>
#include <system_error>
using namespace std;
void Test1() {
const auto value = errc::no_such_file_or_directory;
const auto code = make_error_code(value);
cout << "value == code: " << (value == code) << "\n";
}