Files
safe_numerics/doc/html/notes.html
2017-02-03 14:24:05 -08:00

59 lines
3.5 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Background</title>
<link rel="stylesheet" href="boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Safe Numerics">
<link rel="up" href="index.html" title="Safe Numerics">
<link rel="prev" href="eliminate_runtime_penalty/3.html" title="Mixing Approaches">
<link rel="next" href="concepts.html" title="Type Requirements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img href="index.html" height="164px" src="pre-boost.jpg" alt="Library Documentation Index"></td>
<td><h2>Safe Numerics</h2></td>
</tr></table>
<div class="spirit-nav">
<a accesskey="p" href="eliminate_runtime_penalty/3.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="index.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="concepts.html"><img src="images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="safe_numerics.notes"></a>Background</h2></div></div></div>
<p>This library is a re-implementation of the facilities provided by
<a href="http://safeint.codeplex.com" target="_top">David LeBlanc's SafeInt
Library</a> using C++14 and the <a href="http://www.boost.org" target="_top">Boost
Libraries</a>. I found this library very well done in every way. My main
usage was to run unit tests for my embedded systems projects on my PC.
Still, I had a few issues.</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>It was a lot of code in one header - 6400 lines. Very unwieldy to
understand, modify and maintain.</p></li>
<li class="listitem"><p>I couldn't find separate documentation other than that in the
header file.</p></li>
<li class="listitem"><p>It didn't use <a href="http://www.boost.org" target="_top">Boost</a>
conventions for naming.</p></li>
<li class="listitem"><p>It required porting to different compilers.</p></li>
<li class="listitem"><p>It had a very long license associated with it.</p></li>
<li class="listitem"><p>I could find no test suite for the library.</p></li>
</ul></div>
<p>This version addresses these issues. It exploits <a href="http://www.boost.org" target="_top">Boost</a> facilities such as template
metaprogramming to reduce the number of lines of source code to
approximately 4700. It exploits the Boost Preprocessor Library to generate
exhaustive tests.</p>
<p>All concepts, types and functions documented are declared in the name
space <code class="computeroutput">boost::numeric</code>.</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2012 Robert Ramey<p><a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">Subject to Boost
Software License</a></p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="eliminate_runtime_penalty/3.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="index.html"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="concepts.html"><img src="images/next.png" alt="Next"></a>
</div>
</body>
</html>