Commit Graph

512 Commits

Author SHA1 Message Date
Antony Polukhin
ab0727fdac Fix streams and buffers usage (refs #8267 and refs #7704). Now conversions the use STL streams shall work faster
[SVN r83642]
2013-03-30 07:20:22 +00:00
Antony Polukhin
633b852b81 Update code that uses string buffers (refs #8267).
Treat cast to pointer as compile time error (refs #8334).
Update documentation

[SVN r83601]
2013-03-27 17:00:46 +00:00
Antony Polukhin
9fc1a66d27 Reimplement STL string buffer unlocker (refs #8267 and refs #7704)
[SVN r83543]
2013-03-24 15:26:45 +00:00
Antony Polukhin
a4bd056b8e Merge from trunk:
* Fixed incorrect usage of Boost.Math when it does not support long double (fixes #8162)
* Fixed ambiguity of boost::lexical_cast functions (fixes #7421)

[SVN r83542]
2013-03-24 14:37:56 +00:00
Antony Polukhin
61938bc8d3 Fix ambiguity while using lexical_cast with std::transform or other functions that may take a pointer to lexical_cast (refs #7421)
[SVN r83457]
2013-03-16 09:24:08 +00:00
Antony Polukhin
694f7b5033 Do not use long double type in lexical_cast for internal variables if Boost.Math has no functions for long double (refs #8162)
Do not test lexical_cast on long doubles, if Boost.Math does not support long double

[SVN r83129]
2013-02-24 13:34:57 +00:00
Antony Polukhin
335c868e9b Merge from trunk:
* Silence some buggy VS warnings (fixes #7949)
* Fix -Wconversion warnings (fixes #2558)
* Added support for int128 conversions (fixes #7909)

[SVN r83114]
2013-02-24 08:31:17 +00:00
Antony Polukhin
a15dbed640 Silence some buggy VS warnings (refs #7949)
[SVN r82807]
2013-02-10 13:59:45 +00:00
Antony Polukhin
5c8c897d30 Fixed as many -Wconversion warnings in lexical cast and tests as possible (refs #2558)
[SVN r82695]
2013-02-03 09:20:28 +00:00
Antony Polukhin
3e4a1669f1 More tests (refs #7814)
[SVN r82694]
2013-02-03 07:38:56 +00:00
Antony Polukhin
cb9de2c55f Update performance results for VC in docs.
Looks like bug #6523 now is fixed (fixes #6523)

[SVN r82685]
2013-02-02 07:44:09 +00:00
Antony Polukhin
89556c8a0f Documentation update (refs #7909)
[SVN r82561]
2013-01-20 12:20:43 +00:00
Antony Polukhin
47bef9517f Attempt to add support for lexical conversions of int128 types (refs #7909)
[SVN r82560]
2013-01-20 12:13:31 +00:00
Antony Polukhin
518203671c Merge from trunk: fixes #7814 (fixed some numeric to numeric conversions bugs, workaround warnings, -ftrapv now does not triggers coredump)
[SVN r82268]
2012-12-29 14:41:23 +00:00
Antony Polukhin
63b680c082 More strict tests, less workarounds, bugfixes (refs #7814)
[SVN r82227]
2012-12-27 20:17:09 +00:00
Antony Polukhin
16890bf041 Merge from trunk
* Fixes #7799 (optimizations with std::array were not used)
* Fixes #7831 (documentation update)

[SVN r82224]
2012-12-27 18:54:28 +00:00
Antony Polukhin
565e2882d3 Add missing signature to doc (refs #7831)
[SVN r82220]
2012-12-27 18:47:15 +00:00
Antony Polukhin
24bc6ca6f2 Fix bug in array conversion test (refs #7799)
[SVN r82187]
2012-12-23 15:16:01 +00:00
Antony Polukhin
4ad6f1bd4b FIx bug in conversion of some std::array implementations (refs #7799)
[SVN r82172]
2012-12-22 18:42:04 +00:00
Antony Polukhin
5a6309db7a Fix incorrect macro usage (refs #7799)
[SVN r82017]
2012-12-16 09:01:18 +00:00
Antony Polukhin
2333ee53f8 Minor fix in lexical_cast_stream_traits_test.cpp
[SVN r81745]
2012-12-06 17:20:28 +00:00
Antony Polukhin
dbda7689e0 Merge lexical_cast from trunk:
* Deduce stream character type for user defined classes (fixes #6786)
* Deprecated macros replaced with new ones (thanks to Marshall Clow)
* Updated documentation (refs #6786, fixes #7582)
* More tests and minor bugfixes

[SVN r81668]
2012-12-02 09:33:42 +00:00
Marshall Clow
e15f179bfc Removed usage of deprecated macros
[SVN r81559]
2012-11-26 17:27:53 +00:00
Marshall Clow
82969ebb20 Remove usage of deprecated macros
[SVN r81551]
2012-11-26 14:14:10 +00:00
Antony Polukhin
17f4b6fd4c Comment out some minor unrequired tests
[SVN r81486]
2012-11-22 16:33:54 +00:00
Antony Polukhin
2ea7487806 Move all the stream specific metafunctions to lexical_cast_stream_traits<Source, Target>
Test stream traits for correctness and correct optimization detection

[SVN r81354]
2012-11-15 07:26:23 +00:00
Antony Polukhin
cd5a55aab5 Documentation update for lexical_cast (refs #6786)
[SVN r81353]
2012-11-15 06:45:23 +00:00
Antony Polukhin
f682bff3a7 Simplify test_getting_pointer_to_function to don't deal with compilers bugs and just test that getting pointer to lexical_cast<T1, T2> is not ambiguous
[SVN r81294]
2012-11-11 08:59:36 +00:00
Antony Polukhin
1c37887f2b Stream type detection metafunctions were rewritten so that now they can detect stream type for user defined types (refs #6786)
Removed unrequired `::` 

[SVN r81278]
2012-11-10 07:42:04 +00:00
Antony Polukhin
5c3159cd1c Attempt to workaround VACPP, CRAY and ancient GCC bugs in lexical_cast tests
[SVN r81162]
2012-11-03 16:20:43 +00:00
Antony Polukhin
c484325310 Fix FAQ section of lexical_cast documentation (refs #7582)
[SVN r81069]
2012-10-27 16:30:41 +00:00
Antony Polukhin
0920c53e23 Merege fix for #7421 from trunk
[SVN r80787]
2012-09-30 16:07:32 +00:00
Antony Polukhin
42e7585dd4 Tiny documentation update (refs #7421)
[SVN r80739]
2012-09-28 18:31:53 +00:00
Antony Polukhin
7b6c4eed7d Remove bad test (refs #7421)
[SVN r80731]
2012-09-28 04:55:37 +00:00
Antony Polukhin
824fbd9b06 Do not overload lexical_cast<To, From>(const From&), instead add lexical_cast<To>(character_type,size_type) templates (refs #7421). Added tests for getting &boost::lexical_cast<To,from> functions pointers
[SVN r80715]
2012-09-26 19:57:31 +00:00
Antony Polukhin
8d373a0c99 Merge updated tests from trunk (now float types tests are less strict, workaround MSVC2012 bug)
[SVN r80672]
2012-09-23 17:19:05 +00:00
Antony Polukhin
77eff6b47d Workaround MSVC2012 error in lexical_cast_test.cpp
[SVN r80584]
2012-09-18 20:11:05 +00:00
Antony Polukhin
8705038cd2 Workaround MSVC2012 error in lexical_cast_test.cpp
[SVN r80503]
2012-09-12 03:58:26 +00:00
Antony Polukhin
bb224866a7 Fix float types tests, make them less strict (so that MSVC2012 could pass it)
[SVN r80438]
2012-09-08 01:44:18 +00:00
Antony Polukhin
733438e072 Merge from trunk:
1) #warning replaced with #error (refs #7228)
2) Pavel Korzh added to thanks list (refs #7157)
3) BOOST_NOEXCEPT modifiers added where possible
4) better support for c++11 Unicode characters
5) fixed compilation with MSVC+STLPort
6) more agressive usage of Traits template parameter
7) Added lexical_cast(const CharType* chars, std::size_t count) function overload (refs #6430 and refs #6663)
8) Fixed GCC warning in numeric_cast_test.cpp
9) Fix compilation of lexical cast with MSVC 2003 (refs #7255)

[SVN r80409]
2012-09-05 18:23:41 +00:00
Antony Polukhin
c43b86d7f1 Replace .c_str() with .data() in documentation (refs #6663)
[SVN r80377]
2012-09-03 17:23:16 +00:00
Antony Polukhin
c290a26625 Added missing const modifier
[SVN r80374]
2012-09-03 17:06:40 +00:00
Antony Polukhin
d08477900d Added lexical_cast(const CharType* chars, std::size_t count) function overload (refs #6430 and refs #6663)
Fixed GCC warning in numeric_cast_test.cpp

[SVN r80291]
2012-08-28 20:31:16 +00:00
Antony Polukhin
63acf4f174 Fix compilation of lexical cast with MSVC 2003 (refs #7255)
[SVN r80210]
2012-08-25 19:07:46 +00:00
Antony Polukhin
ce95319f03 Multiple small changes:
1) #warning replaced with #error (refs 7228)
2) Pavel Korzh added to thanks list (refs 7157)
3) BOOST_NOEXCEPT modifiers added where possible
4) better support for c++11 Unicode characters
5) fixed compilation with MSVC+STLPort
6) more agressive usage of Traits template parameter

[SVN r80105]
2012-08-21 04:44:00 +00:00
Antony Polukhin
f67347e308 Merge bugfix for volatile types (refs #7157)
[SVN r79871]
2012-08-05 09:46:43 +00:00
Antony Polukhin
d6a72e9ea5 Fix bug with volatile types (refs #7157)
[SVN r79797]
2012-07-29 18:54:24 +00:00
Antony Polukhin
46c6cc911b Merge fix of VC warning (fixes #7116)
[SVN r79605]
2012-07-19 18:42:34 +00:00
Antony Polukhin
3c94791b1e Workaround VC warning (refs #7116)
[SVN r79565]
2012-07-16 17:17:00 +00:00
Antony Polukhin
80d480ca0b Fix typo in documentation (fixes #7129)
[SVN r79480]
2012-07-13 19:22:49 +00:00