Antony Polukhin
184f7e43f0
Update copyright years
2026-01-04 11:10:09 +03:00
dependabot[bot]
4cc0fa77b4
Bump actions/checkout from 2 to 6 ( #94 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 6.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v6 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-26 22:05:36 +03:00
Antony Polukhin
4d1e18cf4c
Add dependabot
2025-12-24 20:21:04 +03:00
Antony Polukhin
d57771ecf1
CI fixes ( #93 )
2025-12-23 20:25:26 +03:00
Antony Polukhin
1b804c7a31
Implement initial version of C++20 module boost.lexical_cast ( #84 )
2025-12-11 22:17:21 +03:00
Antony Polukhin
275844e651
Fix regression in unsigned short to wstring casting without wchar_t b… ( #92 )
...
…uiltin type
Fixes: https://github.com/boostorg/lexical_cast/issues/89
boost-1.90.0
boost-1.90.0.beta1
2025-10-16 09:15:33 +03:00
Antony Polukhin
1084d98719
More tests and fixes for floating-point special value conversions to integers and bool ( #91 )
...
Fixes: https://github.com/boostorg/lexical_cast/issues/81
2025-10-11 17:36:58 +03:00
Antony Polukhin
7f60da84c3
Run all the tests in CMake, add CMake runs into CI. Drop dependency on Boost.TypeTraits ( #90 )
2025-10-07 20:25:13 +03:00
Romain Geissler @ Amadeus
8fc8a19931
Reduce dependency on Boost.TypeTraits now that C++ >= 11 is required. ( #87 )
...
This allows to workaround the following error when using clang >= 21 on the following code:
```
#include <string>
#include <iostream>
#include "boost/lexical_cast.hpp"
enum SomeEnum
{
OneValue
};
int main()
{
std::cout << boost::lexical_cast<std::string>(SomeEnum::OneValue) << std::endl;
}
```
Results in:
```
/app/boost/include/boost/type_traits/is_signed.hpp:37:25: error: in-class initializer for static data member is not a constant expression
37 | static const no_cv_t minus_one = (static_cast<no_cv_t>(-1));
... (snapped)
/app/boost/include/boost/type_traits/is_signed.hpp:37:38: note: integer value -1 is outside the valid range of values [0, 1] for the enumeration type 'SomeEnum'
37 | static const no_cv_t minus_one = (static_cast<no_cv_t>(-1));
```
2025-10-05 12:14:47 +03:00
Antony Polukhin
4862e296d0
CI fixes ( #88 )
2025-09-08 09:02:39 +03:00
bmagistro
a16040a73c
Switch from implicit to explicit type conversion ( #85 )
...
Signed-off-by: Ben Magistro <koncept1@gmail.com >
2025-08-22 10:33:58 +03:00
ivanpanch
46ee1c3528
Fix mistakes ( #86 )
2025-08-22 10:32:30 +03:00
Antony Polukhin
5326b49475
Do not permit implicit conversions to floating point types in decltype(shl_real_type(x, buffer)) substitution ( fixes #82 ) ( #83 )
boost-1.89.0
2025-05-13 19:32:21 +03:00
Antony Polukhin
1c89e3a56c
Update copyright years
boost-1.88.0
boost-1.88.0.beta1
2025-01-05 19:41:20 +03:00
René Ferdinand Rivera Morell
71a184d20f
Add support for modular build structure. ( #78 )
...
This is part of the effort to make the Boost libraries "modular" for build and consumption. See https://lists.boost.org/Archives/boost/2024/01/255704.php and https://github.com/grafikrobot/boost-b2-modular/blob/b2-modular/README.adoc for more information.
This PR depends on the following other PRs being merged to both develop and master branches of the respective repos:
- https://github.com/boostorg/boost/pull/854
boost-1.87.0.beta1
boost-1.87.0
2024-08-25 09:57:23 +03:00
Antony Polukhin
7f121f8ce3
Drop Boost.Integer dependency ( #79 )
2024-08-14 21:15:33 +03:00
Antony Polukhin
ff2f0496b0
Fixed conversion of std::basic_string_view and boost::basic_string_view containing one or more \0 characters.
...
Issue was introduced in 1.85.0
boost-1.86.0.beta1
boost-1.86.0
2024-07-07 20:08:13 +03:00
Antony Polukhin
7861401ac4
Always use the boost::core::*printf functions and rely on Boost.Core workarounds ( #77 )
2024-04-13 09:55:14 +03:00
René Ferdinand Rivera Morell
92e55e842e
Add macOS testing. ( #75 )
...
Fixes https://github.com/boostorg/lexical_cast/issues/76
---------
Co-authored-by: Antony Polukhin <antoshkka@gmail.com >
2024-04-12 19:12:54 +03:00
Antony Polukhin
02e5821ab3
Do not use custom traits from input/output types as it leads to linktime or runtime errors ( fixes #46 ) ( #74 )
boost-1.85.0.beta1
boost-1.85.0
2024-02-15 11:50:10 +03:00
Antony Polukhin
3433c34b43
Suppress the unsigned-integer-overflow sanitizer warnings and do not recover from the integer sanitizer errors ( fixes #45 ) ( #73 )
2024-02-15 09:24:44 +03:00
Antony Polukhin
518e28ff79
Dropped dependency on Boost.NumericConversion and Boost.MPL ( #72 )
...
Fix some corner cases of floating-point conversions (infinities to infinities of smaller type, fractional numbers to integers)
2024-02-13 10:55:25 +03:00
Antony Polukhin
fc5ffb67f8
Simplify the code by removing the explicit copy optimization that is not profitable on modern compilers ( #71 )
2024-01-28 14:05:12 +03:00
Antony Polukhin
31e0fcde67
Optimizations for std::basic_string_view ans boost::basic_string_view (ref https://github.com/boostorg/lexical_cast/issues/30 ) ( #70 )
2024-01-26 20:16:50 +03:00
Antony Polukhin
f0862bb60d
Significant rewrite of the internal logic to separate optimized and C++ Standard Library IO-based streams ( #69 )
...
* C++ Standard Library based streams now constructed in less cases leading to **better performance**;
* less template instantiations and simpler maintainance;
* support for `volatile` input types was dropped, following the C++ Standard Library trend.
2024-01-24 22:35:41 +03:00
Antony Polukhin
4bf37fb6ce
Do not reinterpret_cast boost:: and std::array and do not check their sizes (refs #64 ) ( #68 )
2024-01-21 14:59:43 +03:00
Antony Polukhin
621b9cf431
Merge branch 'develop' of github.com:boostorg/lexical_cast into develop
2024-01-21 14:49:22 +03:00
Antony Polukhin
92ef7fdeaf
Update performance measures
2024-01-21 14:49:07 +03:00
Antony Polukhin
fe9ee41f5c
Reduce template instantiations count by using template aliases ( #67 )
2024-01-21 14:23:33 +03:00
Antony Polukhin
90ec909dcf
Update copyright years
2024-01-07 13:22:00 +03:00
Antony Polukhin
a713e09eab
Update copyright years
2024-01-07 13:06:23 +03:00
Antony Polukhin
1ca93a8e27
Drop Boost.Range dependecy ( #63 )
boost-1.84.0
boost-1.84.0.beta1
2023-09-10 16:52:10 +03:00
Antony Polukhin
c65a020401
Use BOOST_OVERRIDE to satisfy GCC-4.6 (refs #60 )
2023-09-09 15:34:52 +03:00
Antony Polukhin
515e5988b2
Minor changes to satisfy GCC-4.6 (refs #60 )
2023-09-03 15:00:21 +03:00
Antony Polukhin
af5ce2a5fe
Drop C++03 and C++98 support ( #62 )
...
Also update tests to not use Boost.Test
2023-09-02 17:42:14 +03:00
Antony Polukhin
844a4d1640
Merge pull request #59 from Romain-Geissler-1A/fix-warning
...
Fix -Wdeprecated-copy-with-dtor warnings with clang.
2023-08-12 10:58:56 +03:00
Romain Geissler
20db4f8d32
Fix -Wdeprecated-copy-with-dtor warnings with clang.
...
/data/mwrep/res/osp/Boost/23-0-0-0/include/boost/lexical_cast/bad_lexical_cast.hpp:59:9: error: definition of implicit copy constructor for 'bad_lexical_cast' is deprecated because it has a user-declared destructor
[-Werror,-Wdeprecated-copy-with-dtor]
~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE = default;
2023-06-02 13:20:24 +00:00
Antony Polukhin
35941953d1
update CI setup (1)
boost-1.83.0
boost-1.83.0.beta1
2023-05-21 12:42:50 +03:00
Antony Polukhin
4850d71673
update CI setup
2023-05-21 09:55:36 +03:00
Antony Polukhin
42518efe39
add C++03 deprecation warnings
2023-05-14 20:02:49 +03:00
Antony Polukhin
32e9b6d2a0
Update copyright years
boost-1.82.0.beta1
boost-1.82.0
2023-01-19 10:00:15 +03:00
Antony Polukhin
345e1549b4
Merge pull request #56 from mborland/develop
...
Fix for sprintf deprecation message
2023-01-17 15:25:15 +03:00
Matt Borland
b7fd03b19d
Replace sprintf with Boost.Core snprintf
2022-12-08 18:32:56 -08:00
Antony Polukhin
81148c50f7
Revert "Merge pull request #51 from biodranik/sprintf-warning-fix"
...
This reverts commit e67d186e0d , reversing
changes made to a9f2961159 .
boost-1.81.0.beta1
boost-1.81.0
2022-09-03 07:57:49 +03:00
Antony Polukhin
cfd466eacd
Remove MacOS run from CI as it almost always hits CI limits
2022-09-02 19:17:08 +03:00
Antony Polukhin
e49ad59570
Merge pull request #54 from boostorg/antoshkka/update-ci-win2022
...
Update CI
2022-09-02 17:34:52 +03:00
Antony Polukhin
d54f16a0af
update ci
2022-09-02 16:21:11 +03:00
Antony Polukhin
403d79edc7
fix compilation for casting volatile arithmetic types
...
Fixes #50
2022-09-01 13:53:46 +03:00
Antony Polukhin
9e287d6624
Merge pull request #53 from fanquake/core_noncopyable
...
refactor: use core/noncopyable over boost/noncopyable
2022-09-01 11:45:32 +03:00
Antony Polukhin
e67d186e0d
Merge pull request #51 from biodranik/sprintf-warning-fix
...
Replaced sprintf with snprintf to silent the security deprecated warning in Xcode 14
2022-08-31 21:27:53 +03:00