2
0
mirror of https://github.com/boostorg/detail.git synced 2026-01-19 04:12:08 +00:00

39 Commits

Author SHA1 Message Date
Andrey Semashev
002caaa54f Added tests for BOOST_BITMASK. 2025-06-12 18:41:01 +03:00
René Ferdinand Rivera Morell
a54b2619f8 Add support for modular build structure. (#24)
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add missing b2 testing module import.

* Add missing import-search for cconfig/predef checks.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.
2024-08-19 01:25:34 +03:00
Andrey Semashev
00efa0a0fb Removed compiler options that are not supported by clang-cl. 2022-08-14 11:36:17 +03:00
Andrey Semashev
2ca25f118d Fix running multiple configs of test_utf8_codecvt in parallel.
When running multiple different configurations of test_utf8_codecvt, e.g.
debug/release or different C++ versions, the test used to spuriously fail
because the test processes would conflict through the files the test creates.

To work around this, the test now creates the files in the same directory
where the test executable is located. With Boost.Build, that means the files
will be created in different directories for different configs.

This should fix spurious test failures in CI.
2021-09-16 01:26:08 +03:00
Andrey Semashev
3986d6b7e6 Updated test_utf8_codecvt to show data differences on test failures. 2021-09-12 20:57:37 +03:00
Andrey Semashev
5d285a2d5a Disabled libstdc++ debug mode to work around gcc 10.1 bug.
The debug mode fails to compile in C++11 mode because of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95289.
2020-05-23 19:02:45 +03:00
Andrey Semashev
d3da3ed070 Added a workaround for removed nested typedefs in std::allocator. 2020-05-23 18:45:20 +03:00
Andrey Semashev
4bb5ef3b38 Added a workaround for C++20 ostream having deleted operator<< for wchar_t. 2020-05-23 18:36:02 +03:00
Andrey Semashev
01c1bf1906 Use more up-to-date location of lightweight_test.hpp 2020-05-10 23:27:22 +03:00
Andrey Semashev
be1294c8a8 Converted binary_search_test to lightweight_test.hpp 2020-05-10 23:24:58 +03:00
Andrey Semashev
f26a04df65 Converted allocator_utilities_test to lightweight_test.hpp 2020-05-10 23:20:53 +03:00
Andrey Semashev
5f456ffe33 Converted blank_test to lightweight_test.hpp. 2020-05-10 23:20:22 +03:00
Andrey Semashev
fc781c8a5a Added a missing include. 2019-05-06 13:24:18 +03:00
Peter Dimov
1a9b7bccc3 Remove typename/template uses outside of templates 2018-05-03 15:52:42 +03:00
Daniel James
adaa82e03e Add some tests
Test classes which I'm going to remove the MPL dependency from: blank,
allocator_utilities, is_xxx and reference_content.  I'm also going to change
indirect_traits, but that's tested in the python module.
2018-04-08 20:55:38 +01:00
Andrey Semashev
ac88c3f24c Updated utf8_codecvt test to verify that length() detects character boundaries. 2017-10-29 21:27:54 +03:00
Robert Ramey
b47fccb4a4 adjusted visibility to permit passing of tests on mingw for serialization library 2017-10-22 11:22:45 -07:00
Andrey Semashev
15d8f9a59c Actualized numeric_traits implementation.
1. Ported to Boost.TypeTraits primitives for type inspection and simple
   metaprogramming instead of local implementations. This effectively
   drops any workarounds for compilers without support for partial template
   specializations. Such compilers are long outdated.

2. Include more fine-grained headers from Boost.TypeTraits to optimize
   compilation times.

3. Made numeric_distance function constexpr.

4. Updated the test accordingly (i.e. replaced the use of now removed local
   components with Boost.TypeTraits). Also replaced lexical_cast with
   standard streams to further reduce dependencies.

None of these changes should affect functionality.
2017-09-20 02:01:51 +03:00
Andrey Semashev
9b2065c0ca Enabled numeric_traits test that has been moved from Boost.Utility. 2017-09-20 01:37:06 +03:00
Peter Dimov
13b49041e1 Move test files to test/ 2017-09-20 01:33:10 +03:00
Andrey Semashev
6c11197586 Silenced warnings about unused variables. 2016-11-06 21:11:51 +03:00
Andrey Semashev
e88ec2fc6e Replaced std::binary_function with the corresponding typedefs. Improves compatibility with C++17. Also fixed an include for the standard streams. 2016-11-06 21:07:08 +03:00
Andrey Semashev
94f1e6b0c6 Fixed length calculation and added a test. 2016-08-07 23:35:04 +03:00
Robert Ramey
4013403c44 skipped test_utf8_codecvt if w?stream not supported 2016-05-02 10:33:05 -07:00
Robert Ramey
313c13b263 Added test for utf8_codecvt 2016-03-28 10:29:57 -07:00
Daniel James
9063b1d1fd Don't run 'correctly_disable' tests by default. 2014-05-31 18:22:42 +01:00
Daniel James
c75e59f0e1 Move binary_search_test.cpp from utility module.
As it's testing a header in this module.
2014-05-28 15:57:56 +01:00
Andrey Semashev
7312799cc0 Fixed dereferencing rend iterators. 2014-03-26 09:57:33 +04:00
Daniel James
02d2fb38e3 Hash: Merge deprecated header warning + some documentation.
[SVN r78697]
2012-05-27 21:13:49 +00:00
Daniel James
9436535318 Unordered: Fix complex type for gcc's standard library. Fixes #6139.
I haven't had any confirmation, but I assume this fixes the problem.


[SVN r75909]
2011-12-11 21:43:01 +00:00
Daniel James
8a12de16a4 Detail: Turn off warnings as errors for compile-fail tests.
The test shouldn't succeed because the compile failed because of a warning.


[SVN r73096]
2011-07-14 09:47:51 +00:00
Daniel James
e87588af6a Detail: test container_fwd for debug version of standard library.
[SVN r72996]
2011-07-10 13:15:08 +00:00
Daniel James
bb1f3d690a Detail: More pessimistic container_fwd.hpp
Have a separate config stage, which by default disables forward
declaration of containers. Also add a test to check that if it is
disabled correctly.

Removed forward declaration of std::pair - since it's almost always
included by `<utility>`.

[SVN r72990]
2011-07-09 17:13:39 +00:00
Steven Watanabe
d20069a4d6 Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
0693db0847 Fixed ambiguity issues when compiling with C++0x support enabled.
[SVN r68155]
2011-01-14 17:37:59 +00:00
Bryce Adelstein-Lelbach
e8060b3ef5 Removed the use of __gnu_cxx::is_sorted from Boost.Graph as it's lolnonportable,
implemented a version of the algorithm as a replacement,



[SVN r68144]
2011-01-14 03:02:47 +00:00
Bryce Adelstein-Lelbach
4a1c553f90 Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +00:00
Daniel James
475c3310be Move tests for container_fwd.hpp into detail.
[SVN r67667]
2011-01-04 23:30:22 +00:00
Bryce Adelstein-Lelbach
a057517431 Added an iomanip implementation to boost/detail. GNU's libstdc++ version 4.5+
contains an iomanip header which uses C++0x features that only GCC supports,
causing breakage with ICC and Clang. Also added a test, but I'm not sure how to
set it up to be run by the testing machines.



[SVN r67111]
2010-12-08 18:25:07 +00:00