Commit Graph

44 Commits

Author SHA1 Message Date
Romain Geissler
53de752e1f Use BOOST_NOEXCEPT_OR_NOTHROW in public headers to prepare for C++20 2019-04-18 12:43:28 -04:00
Fernando Cacciola
8ad516370a
Revert "Fix compilation on lastest MSVC" 2018-03-06 15:34:11 -03:00
Unknown
4505bc3808 Fix compilation on lastest MSVC
std::unary_function has been removed from C++ 17 standard so it does not compile anymore on MSVC
2017-09-27 12:39:34 +02:00
Brandon Kohn
c9d7a49b4a Removed redundant typedefs for argument_type and result_type 2016-07-06 07:10:36 -04:00
Brandon Kohn
736745061d Merge branch 'hotfix/remove_std_unary_function' into develop 2016-07-05 21:40:31 -04:00
Brandon Kohn
593aafab5a removed deprecated std::unary_function from various conversion functors 2016-07-05 21:39:44 -04:00
Daniel James
69a46fea8a Remove old Visual C++ 6 workaround
From 41473987e5 - it was never released,
and Visual C++6 isn't supported anymore.
2014-06-02 10:11:42 +01:00
Stephen Kelly
d4a8c7049a Numeric: Remove obsolete MSVC version checks.
[SVN r86053]
2013-09-30 11:23:20 +00:00
Antony Polukhin
e6fa2c4b6d Merge from trunk
* Much more tests
* Now numeric_cast (and lexical_cast) can be compiled with disabled exceptions
* Supress warning described in #6645 (implicit conversion shortens 64-bit value into a 32-bit value)
* Fixed compilation of lexical_cast with BOOST_NO_STD_LOCALE defined
* Documentation updates
* Case insensitive "NaN" and "Inf" parsing 
* Performance tests commit

[SVN r77288]
2012-03-10 07:31:36 +00:00
Antony Polukhin
0fc4c240b9 Fixes #5731, fixes #5076, fixes #5393, fixes #5800
Now numeric_cast (and lexical_cast) can be compiled with disabled exceptions

[SVN r77234]
2012-03-05 17:11:20 +00:00
Brandon Kohn
de94a311a3 Merged numeric cast trait fixes for fundamental type specializations.
[SVN r76836]
2012-02-02 01:42:52 +00:00
Brandon Kohn
c9e3ffd511 Changed long long and unsigned long long to use the boost::(u)long_long_type typedefs in the numeric_cast_traits base specializations.
[SVN r76808]
2012-01-31 14:27:10 +00:00
Brandon Kohn
e7b5847b5a Fixes for https://svn.boost.org/trac/boost/ticket/6158 numeric_cast_traits.
[SVN r76765]
2012-01-28 19:59:35 +00:00
Brandon Kohn
238b6ab769 Merge of numeric_cast_traits in numeric conversion library.
[SVN r74762]
2011-10-06 17:27:17 +00:00
Brandon Kohn
0ab23addef Replaced special copyright character with (c) in numeric cast traits files.
[SVN r74356]
2011-09-12 14:35:29 +00:00
Daniel James
4c8e454bbb Conversion: Fix preprocessor iteration.
Some preprocessors process all the 'elif' clauses even if it's known
that they're not going to be used which was resulting in errors.

[SVN r73691]
2011-08-12 06:55:07 +00:00
Brandon Kohn
507d157d10 Added numeric_cast_traits to the numeric conversion library. Tested on msvc-10.0 and gcc-4.3.4/cygwin.
[SVN r73675]
2011-08-11 19:08:08 +00:00
Antony Polukhin
41473987e5 Fixes #5707. Fixes some trivial bugs for VC++6
[SVN r73201]
2011-07-17 19:36:06 +00:00
John Maddock
5963a9cb67 Merge fixes from Trunk.
Fixes #2392.

Change includes of <cmath> to <boost/config/no_tr1/config.hpp>.

Previously if Boost.TR1 was in the include path then including <cmath> pulls in all the new TR1 math functions, which in turn also requires linking to an external library. With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only. 

[SVN r49314]
2008-10-13 09:00:03 +00:00
John Maddock
67e2ca29bc Change includes of <cmath> to <boost/config/no_tr1/config.hpp>.
Previously if Boost.TR1 was in the include path then including <cmath> pulls in all the new TR1 math functions, which in turn also requires linking to an external library.  With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only.

Fixes #2392.


[SVN r49254]
2008-10-10 16:10:00 +00:00
Beman Dawes
225b672e44 Merge trunk
[SVN r47717]
2008-07-23 15:15:27 +00:00
Marshall Clow
6dc956e342 Replaced all occurrences of non-ASCII copyright symbol with '(c)' for people using non-ASCII code pages
[SVN r43992]
2008-04-02 01:42:32 +00:00
Nicola Musatti
4755739313 Updated Borland workaround
[SVN r33857]
2006-04-29 06:44:35 +00:00
Nicola Musatti
62dd549c9e Updated Borland workaround
[SVN r33857]
2006-04-29 06:44:35 +00:00
Fernando Cacciola
6a2f849e56 Fixed the converting assignment bug in optional<>
Fixed the usage of 'None' in converter.h, which is declared as a macro in X11/X.h


[SVN r32531]
2006-02-03 19:56:03 +00:00
John Maddock
7bae7c7dbd Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
2005-08-25 16:27:28 +00:00
Fernando Cacciola
99ac7de524 fixed: "bcc5.6.4 added to the old cast redirection list"
[SVN r29814]
2005-06-27 15:05:13 +00:00
Fernando Cacciola
852f6f36ed bcc5.6.4 added to the old cast redirection list
[SVN r29792]
2005-06-24 23:17:15 +00:00
Fernando Cacciola
cd1476c690 BOOST_TESTED_AT used in numeric_cast
old_numeric_cast takes the exception class from converter_policies


[SVN r29789]
2005-06-24 19:09:13 +00:00
Fernando Cacciola
ecd6da6218 bad_numeric_cast taken from converter_policies.hpp
[SVN r29785]
2005-06-24 17:22:21 +00:00
Dave Abrahams
d85ebc6b4f Add missing using declaration
[SVN r29777]
2005-06-24 15:06:45 +00:00
Dave Abrahams
2b49542acd Add missing #include <typeinfo>
[SVN r29775]
2005-06-24 14:34:37 +00:00
Dave Abrahams
5448d52f3c Transplanted numeric_cast
[SVN r29771]
2005-06-24 14:13:36 +00:00
Fernando Cacciola
b83988d8a1 Old numeric_cast<> completely replaced by new code (except that the old code is retained as a fallback mechanism for old broken compilers that can't deal with the new code)
[SVN r29761]
2005-06-23 23:33:01 +00:00
Fernando Cacciola
5ca94ac507 Fixed bug in RoundEven
[SVN r28576]
2005-05-02 14:42:52 +00:00
Aleksey Gurtovoy
3bc804f901 more MSVC tweaks
[SVN r25344]
2004-09-22 17:09:26 +00:00
Joaquín M. López Muñoz
8c2a6a8fd7 taken care of BOOST_NO_STDC_NAMESPACE
[SVN r25332]
2004-09-22 09:21:30 +00:00
Aleksey Gurtovoy
c86ea9be85 MSVC workaround
[SVN r25266]
2004-09-20 10:22:57 +00:00
Aleksey Gurtovoy
c5a67fcf41 merge new MPL version from 'mplbook' branch
[SVN r24874]
2004-09-02 15:41:37 +00:00
John Maddock
a2da8efbe2 Removed Boost.org copyrights, and replace with original authors names (as based on cvs history).
[SVN r24401]
2004-08-11 10:20:52 +00:00
Rene Rivera
e7d3b3d185 Replace direct use of compatibility/cpp_c_headers/cmath with correct indirect <cmath>. This fixes multiple resolution errors on platforms that have the correct headers.
[SVN r24234]
2004-08-01 16:05:07 +00:00
Rene Rivera
3b3f1a578c Remove tabs in file.
[SVN r24043]
2004-07-25 17:12:17 +00:00
Fernando Cacciola
300534d91c BOOST_MPL_AUX_VOID_SPEC_PARAM removed
[SVN r23911]
2004-07-21 18:50:06 +00:00
Fernando Cacciola
be7ce8a2c8 Myself Added
[SVN r23175]
2004-06-24 12:01:42 +00:00