Subject: [Boost-bugs] [Boost C++ Libraries] #1227: Original/Signed/Unsigned Integer Variant Selection Templates
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-02 20:06:25
#1227: Original/Signed/Unsigned Integer Variant Selection Templates
------------------------------+---------------------------------------------
Reporter: dlwalker | Owner: dlwalker
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: integer
Version: | Severity: Not Applicable
Keywords: |
------------------------------+---------------------------------------------
Add new integer selection templates to "boost/integer.hpp" for
* The underlying type for a given integral type. This could be called
`underlying` and would map
* `char` to whichever of {`signed char`, `unsigned char`} that shares
the same values (section 3.9.1, paragraph 1 of the 2003 C++ standard)
* `wchar_t` to its underlying type (paragraph 5 of the same part of
the standard)
* any other type to itself (This includes `bool` because it could be
implemented distinctly from any other integral type.)
* (Someday: extend this to find the underlying type of an
enumeration)
* Find the unsigned equivalent of a given signed integral type, like
the `get_unsigned` examples at
source:/tags/Version_1_34_1/boost/boost/typeof/int_encoding.hpp and
source:/tags/Version_1_34_1/boost/boost/wave/util/flex_string.hpp
* Find the signed equivalent of a given unsigned integral type, as a
dual to the previous point (for both templates, non-matching types return
themselves)
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1227>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC