aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-15 16:26:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-16 13:03:13 +0300
commit8b69cab7c802a0d0bd9cc90da33002dd5f86042f (patch)
treeb7bc7c020ffb440b5b8f203ed4a91d9f0f5793a2 /bpkg/types
parent564801acd608513adb07244829735ffb2669685d (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'bpkg/types')
-rw-r--r--bpkg/types2
1 files changed, 2 insertions, 0 deletions
diff --git a/bpkg/types b/bpkg/types
index 2e03675..8bff6bb 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -15,6 +15,7 @@
#include <ostream>
#include <functional> // function, reference_wrapper
+#include <ios> // ios_base::failure
#include <exception> // exception
#include <stdexcept> // logic_error, invalid_argument, runtime_error
#include <system_error>
@@ -60,6 +61,7 @@ namespace bpkg
using std::invalid_argument;
using std::runtime_error;
using std::system_error;
+ using io_error = std::ios_base::failure;
// <butl/optional>
//