• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3<title>Motivation - Boost.Outcome documentation</title>
4<link rel="stylesheet" href="./css/boost.css" type="text/css">
5<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
6<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
7
8<link rel="icon" href="./images/favicon.ico" type="image/ico"/>
9<body><div class="spirit-nav">
10<a accesskey="p" href="./build.html"><img src="./images/prev.png" alt="Prev"></a>
11    <a accesskey="u" href="./index.html"><img src="./images/up.png" alt="Up"></a>
12    <a accesskey="h" href="./index.html"><img src="./images/home.png" alt="Home"></a><a accesskey="n" href="./motivation/exceptions.html"><img src="./images/next.png" alt="Next"></a></div><div id="content">
13
14  <div class="titlepage"><div><div><h1 style="clear: both">Motivation</h1></div></div></div>
15<p>This section describes techniques currently used to report and handle failures
16in functions, it also shows why these techniques might be insufficient.</p>
17
18<p>If you just want to learn how to use Outcome library go straight to <a href="./tutorial.html">Tutorial
19section</a>.</p>
20
21<div class="notices note" style="background: url('images/note.png') top left no-repeat padding-box padding-box;">
22<div class="notices heading">note</div>
23<div class="notices message"><p>Motivation section of this documentation is not complete yet.</p>
24</div>
25</div>
26
27
28<ol class="children children-li"><li>
29	<a href="./motivation/exceptions.html" >Exceptions</a>
30<p>Exceptions with their good and bad sides.</p><li>
31	<a href="./motivation/errno.html" >errno</a>
32<p>errno with their good and bad sides.</p><li>
33	<a href="./motivation/error_codes.html" >Error codes</a>
34<p>Error codes with their good and bad sides.</p><li>
35	<a href="./motivation/std_error_code.html" >std::error_code</a>
36<p>Overview of std::error_code</p><li>
37	<a href="./motivation/plug_error_code.html" >Plugging a library into std::error_code`</a>
38<p>Illustrates how you can hook into the <code>std::error_code</code> system from the Standard Library in order to work with your own set of error codes.</p><li>
39	<a href="./motivation/plug_error_code2.html" >Plugging a library into boost::system::error_code</a>
40<p>Illustrates how you can hook into the <code>boost::system::error_code</code> system from Boost in order to work with your own set of error codes.</p><li>
41	<a href="./motivation/narrow_contract.html" >Narrow contracts</a>
42<p>Describes narrow-contract functions that do not work for all input values, and advantage of using them.</p></li></ol>
43
44
45
46
47
48
49
50
51        </div><p><small>Last revised: June 27, 2019 at 16:00:40 &#43;0100</small></p>
52<hr>
53<div class="spirit-nav">
54<a accesskey="p" href="./build.html"><img src="./images/prev.png" alt="Prev"></a>
55    <a accesskey="u" href="./index.html"><img src="./images/up.png" alt="Up"></a>
56    <a accesskey="h" href="./index.html"><img src="./images/home.png" alt="Home"></a><a accesskey="n" href="./motivation/exceptions.html"><img src="./images/next.png" alt="Next"></a></div></body>
57</html>
58