Commit Graph

455 Commits

Author SHA1 Message Date
Ben10do
5408a17020 Add tests with lvalue inputs
If the compiler supports forwarding references, we now test if lvalues can be used as input strings for split(), find_all(), and ifind_all().

Note that MSVC (without its recent /permissive- flag) may pass these tests without the forwarding references changes that I made, due to its non-standard binding of lvalues to rvalues.
2018-08-01 22:42:18 +01:00
Ben10do
c6f784cb70 Use forwarding references in string/split.hpp
On compilers that support C++11, this allows both lvalues and rvalues to be used as inputs to the split(), find_all(), and ifind_all() functions.

For example, given a function get_string() that returns a std::string, this allows you to write:
boost::split(result, get_string(), boost::is_any_of(" "))
2018-08-01 20:54:17 +01:00
Marshall Clow
e4dfe0885f Fix broken link to license file in header comment. NFC 2018-07-30 13:07:36 -07:00
Marshall Clow
3659b18846 Add newlines at the end of the fuzzing files 2018-07-04 11:26:52 -07:00
Marshall Clow
6bb5fa5ee0 Remove 'wrappers' 2018-07-04 11:24:01 -07:00
Marshall Clow
ee7a0247be Merge pull request #48 from tzlaine/develop
Add Travis and Appveyor CI config files.
2018-05-31 10:05:29 -07:00
Zach Laine
d1b0024aad Add Travis and Appveyor CI config files. 2018-05-19 13:47:53 -05:00
Marshall Clow
ecb8bfab76 Merge pull request #47 from tzlaine/develop
Add find() variants.
2018-05-18 07:37:36 -07:00
Zach Laine
3f2a962ace East const -> west const. I regret nothing! 2018-05-14 19:19:52 -05:00
Zach Laine
6b2246468e find_{not,*backward} docs copy editing. 2018-05-14 19:15:19 -05:00
Marshall Clow
ea7d35d949 Added some comments 2018-05-13 17:24:36 -07:00
Zach Laine
c5c5d24ff3 Add range-based overloads of find*_backward(). 2018-05-12 16:04:12 -05:00
Zach Laine
6c68cf8624 Add range-based overload of find_not(). 2018-05-12 16:04:01 -05:00
Zach Laine
8c9d5e858c Add docs for find_backward.hpp. 2018-05-11 15:20:12 -05:00
Zach Laine
86d26e7e2e Add docs for find_not.hpp. 2018-05-10 19:01:12 -05:00
Zach Laine
94460b0ca5 Add tests for find_backward.hpp. 2018-05-10 17:56:16 -05:00
Zach Laine
45a4d2580c Add tests for find_not.hpp. 2018-05-10 13:21:21 -05:00
Zach Laine
d7d91d431a Add find_not() and the four find_*_backward overloads from Boost.Text. Needs
tests.
2018-05-09 12:08:46 -05:00
Marshall Clow
7ec1c5c413 Remove too-simple test, add tests for the variants of minmax_element 2018-05-02 11:41:16 -07:00
Marshall Clow
d574d1edd7 Fuzzing targets for minmax 2018-05-01 19:10:47 -07:00
Marshall Clow
3af7acabc7 fix constexpr-ness of a couple of algorithhms - and tests. Based on Pull Request #44 by Flast - thanks! 2018-04-04 11:18:38 -07:00
Marshall Clow
509201f29f Merge pull request #46 from DanielaE/fix/missing-constexpr
functions used in constexpr context must be marked 'constexpr'
2018-03-25 13:01:44 -07:00
Daniela Engert
b0f04afcb0 functions used in constexpr context must be marked 'constexpr'
Signed-off-by: Daniela Engert <dani@ngrt.de>
2018-03-25 17:46:15 +02:00
Marshall Clow
df58b44581 Merge pull request #45 from samuela/patch-1
docstring fixes - Thanks!
2018-03-20 19:05:03 -07:00
Samuel Ainsworth
c34713b983 Revert "Fix clang "parameter not found" warning"
This reverts commit aa8cce5bb4.
2018-03-20 19:01:56 -07:00
samuela
aa8cce5bb4 Fix clang "parameter not found" warning 2018-03-20 17:57:58 -07:00
samuela
d6c8b271b3 remove other incorrect docstring params 2018-03-20 17:53:09 -07:00
samuela
50a2115236 docstring fix for first_finder 2018-03-20 17:50:04 -07:00
Marshall Clow
739d1ed8a2 Merge pull request #43 from jeremy-murphy/C++14_constexpr
Add BOOST_CXX14_CONSTEXPR to identity_operation.
2018-02-05 07:09:53 -08:00
Jeremy W. Murphy
298310f521 Add BOOST_CXX14_CONSTEXPR to identity_operation. 2018-02-06 00:47:41 +11:00
Marshall Clow
63c85e7c5e Qualify calls to Boost.Algorithm algs that have the same name as ones in the standard; prevents ADL ambiguities. Thanks to Billy O'Neill for the heads up. 2018-01-10 10:26:21 -08:00
Marshall Clow
cb52d61054 Merge pull request #39 from ZaMaZaN4iK/feature_branch/apply_permutation
Apply_permutation
2017-11-01 12:57:31 -07:00
Marshall Clow
4ac6b84cfa Merge pull request #41 from DanielaE/fix/typo-in-test
Copy-and-paste error ...
2017-10-08 07:38:32 -07:00
Daniela Engert
0539e0d84a Copy-and-paste error ...
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-10-08 10:33:22 +02:00
Alexander Zaitsev
7df35ffd56 Different fixes 2017-08-30 20:25:15 +03:00
Marshall Clow
554db2f07d Merge pull request #35 from very-cool-name/apolukhin/constexpr
Apolukhin/constexpr
2017-08-29 09:07:59 -07:00
Marshall Clow
f9583cfd39 Merge pull request #36 from DanielaE/feature/replace-deprecated
Conditionally replace deprecated c++98 features by c++11 ones
2017-08-29 07:41:02 -07:00
Daniela Engert
8ae18ae455 Conditionally replace deprecated c++98 features by c++11 ones
change std::random_shuffle -> std::shuffle + random_engine if indicated by the supported language level or Boost configuration macro.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-07-20 16:33:17 +02:00
Alexander Zaitsev
32016b3c79 Fixed missed header for std::swap 2017-07-19 22:10:29 +03:00
Alexander Zaitsev
15c7ff3828 Fixed compatibility with old compilers 2017-07-19 02:15:06 +03:00
Marshall Clow
f14719c3a9 Replace an assert in a test with BOOST_CHECK 2017-06-28 10:04:25 -07:00
Marshall Clow
6bd8bc197a use boost::algorithm::iota in the tests instead of std::iota, which requires C++11 2017-06-28 07:58:21 -07:00
Marshall Clow
334737eebe Implement the C++17 new algorithms 2017-06-27 16:43:17 -07:00
Mike Maximoff
000040b3d9 binary_function is removed from equal and unary_function removed from tests. 2017-06-19 19:03:00 +03:00
Alexander Zaitsev
e07e8e65c6 Fixed references 2017-05-19 18:50:03 -06:00
Alexander Zaitsev
ba7655eb3a Add documentation 2017-05-19 16:59:11 -06:00
Alexander Zaitsev
1970454ecb Added test 2017-05-18 23:33:26 -06:00
Alexander Zaitsev
1ed284d696 Added initial for apply_permutation 2017-05-18 20:38:07 -06:00
Marshall Clow
d6b7f3da90 Use boost::begin/end instead of macros 2017-05-03 22:38:21 -07:00
Marshall Clow
0e62dfb92e Merge pull request #33 from ZaMaZaN4iK/feature_branch/is_partitioned_until
is_partitioned_until support
2017-05-03 18:15:09 -07:00