mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-20 15:02:25 +00:00
58 lines
3.6 KiB
HTML
58 lines
3.6 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>Pending Issues</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="rationale.html" title="Rationale and FAQ">
|
|
<link rel="next" href="acknowledgements.html" title="Acknowledgements">
|
|
</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="rationale.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="acknowledgements.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.pending_issues"></a>Pending Issues</h2></div></div></div>
|
|
<p>The library is under development. There are a number of issues still
|
|
pending.</p>
|
|
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
|
<li class="listitem"><p>The library is currently limited to integers.</p></li>
|
|
<li class="listitem"><p>Conversions to safe integer types from floating point types is
|
|
not explicitly addressed.</p></li>
|
|
<li class="listitem"><p>Note that standard library stream conversion functions such as
|
|
<code class="computeroutput">strtoi</code> etc. DO check for valid input and throw the
|
|
exception <code class="computeroutput">std::out_of_range</code> if the string cannot be
|
|
converted to the specified integer type. In other words,
|
|
<code class="computeroutput">strtoi</code> already contains some of the functionality that
|
|
<code class="computeroutput">safe<int></code> provides.</p></li>
|
|
<li class="listitem"><p>Although care has been taken to make the library portable, it's
|
|
likely that at least some parts of the implementation - particularly
|
|
<code class="computeroutput">checked</code> arithmetic - depend upon two's complement
|
|
representation of integers. Hence the library is probably not
|
|
currently portable to all other possible C++ architectures.</p></li>
|
|
<li class="listitem"><p>Currently the library permits a safe<int> value to be
|
|
uninitialized. This supports the goal of "drop-in" replacement of
|
|
C++/C built-in types with safe counter parts. On the other hand, this
|
|
breaks the "always valid" guarantee.</p></li>
|
|
</ul></div>
|
|
</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 © 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="rationale.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="acknowledgements.html"><img src="images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|