34 Commits

Author SHA1 Message Date
René Ferdinand Rivera Morell
eb7ff254b8 Add support for modular build structure. (#64)
* Make the library modular usable.

* Fix to avoid using gcc/clang option in other compilers.

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

* Change global boost refs to local refs.

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

* Add missing test deps.

* Fix library name in lib declaration.

* Bump B2 require to 5.2

* Update copyright dates.

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

* Adjust self dependencies as inter-lib deps no longer apply globally.

* Kludge node20 into containers.

* Checkout needs to happen after node20 is set up.

* Rewrite GHA CI to use alandefreitas/cpp-actions utilities.

* Fix GHA CI matrix evaluation value.

* Need to copy tested lib to boost-root.

* Tweak copy-library step to work on Windows bash.

* Move library name to matrix variable instead of env var.

* Add test dir to scan to fill missing deps.

* Clear out library dir to be able to copy in workspace tree.

* Avoid the boost tree cache for testing the scanning.

* Remove CI debug listing.

* Tweak factors to reduce over-builds.

* Try and coax more msvc testing.

* Move project global include to target local include.

* Only msvc gets minor version tests.

* Revert GHA CI changes.

* Less impactful update of CI.

* Bump gcc-11 container and be explicit about the exe to try and make it findable.

* Be explicit about compiler gcc commands.

* Undo compiler spec change.
2025-06-26 17:24:28 +03:00
Peter Dimov
4df0de9b47 Merge branch 'develop' of https://github.com/hdu-sdlzx/accumulators into feature/pr-51 2022-04-19 11:29:02 +03:00
Peter Dimov
3d4e8dbc63 Disable failing msvc-14.2 tests 2022-04-19 02:14:55 +03:00
Peter Dimov
6c71a4d856 Update test/Jamfile.v2 2022-04-19 01:43:03 +03:00
Liu Zixian
29abc8578b Replace deprecated headers
Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
2022-03-29 01:02:14 +08:00
Liu Zixian
141f7ab88c fix compiler warnings in max.cpp
gcc.compile.c++ ../../../bin.v2/test/max.test/gcc-11/debug/link-static/threading-multi/visibility-hidden/max.o
In file included from ../../../boost/test/test_tools.hpp:46,
                 from ../../../boost/test/unit_test.hpp:18,
                 from max.cpp:6:
../../../boost/test/tools/old/impl.hpp: In instantiation of ‘boost::test_tools::assertion_result boost::test_tools::tt_detail::equal_impl(const Left&, const Right&) [with Left = unsigned int; Right = int]’:
../../../boost/test/tools/old/impl.hpp:130:26:   required from ‘boost::test_tools::assertion_result boost::test_tools::tt_detail::equal_impl_frwd::call_impl(const Left&, const Right&, mpl_::false_) const [with Left = unsigned int; Right = int; mpl_::false_ = mpl_::bool_<false>]’
../../../boost/test/tools/old/impl.hpp:145:25:   required from ‘boost::test_tools::assertion_result boost::test_tools::tt_detail::equal_impl_frwd::operator()(const Left&, const Right&) const [with Left = unsigned int; Right = int]’
../../../boost/test/tools/old/impl.hpp:92:1:   required from ‘bool boost::test_tools::tt_detail::check_frwd(Pred, const boost::unit_test::lazy_ostream&, boost::unit_test::const_string, std::size_t, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, const Arg0&, const char*, const Arg1&, const char*) [with Pred = boost::test_tools::tt_detail::equal_impl_frwd; Arg0 = unsigned int; Arg1 = int; boost::unit_test::const_string = boost::unit_test::basic_cstring<const char>; std::size_t = long unsigned int]’
max.cpp:53:5:   required from here
../../../boost/test/tools/old/impl.hpp:107:17: Warn: comparison of integer expressions of different signedness: ‘const unsigned int’ and ‘const int’ [-Wsign-compare]
  107 |     return left == right;
      |            ~~~~~^~~~~~~~

Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
2022-03-29 01:01:50 +08:00
Edward Diener
3b627a897c Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74 (#41)
* Use __BORLANDC__ and !__clang__ for legacy compiler

* Updated jamfile command line flag.
2020-05-10 12:38:19 -07:00
Yuval Lifshitz
ff9432f97b Allow accumulator persistency (#18)
* Add, and update, documentation build targets.

* adding serialization to stats

* serialize rolling stats
2019-05-10 15:39:28 -07:00
CromwellEnage
ed71099b2e Update test suite
Install libstdc++ 4.9 for clang-3.8 and clang-3.9 to avoid ::gets error.
2018-12-26 09:49:57 -05:00
CromwellEnage
ce050eb1c5 Fix typo 2018-12-24 19:24:11 -05:00
CromwellEnage
d292970edf Disable tests that are failing at runtime for clang-3.8 and clang-3.9 2018-12-24 16:39:44 -05:00
CromwellEnage
d1c03b0bd3 Increase the iteration count as suggested by Yuval Lipshitz 2018-12-24 08:03:48 -05:00
CromwellEnage
109e65c899 Enable automated testing, fix compiler errors, suppress runtime failures
<boost/accumulators/accumulators_fwd.hpp>
* Replace definition of BOOST_PARAMETER_NESTED_KEYWORD with #include statement.

<boost/accumulators/framework/depends_on.hpp>
* Add const-correct make_acc_list() function overloads.

<boost/accumulators/accumulators_fwd.hpp>
<boost/accumulators/framework/extractor.hpp>
<boost/accumulators/framework/accumulator_set.hpp>
* Add overloads that distinguish between optional 1st named parameter and unnamed sample parameter.
* Use argument composition vice boost::parameter::parameters<>.

<boost/accumulators/framework/extractor.hpp>
* Transform AccumulatorSet parameter type with remove_const and remove_reference as needed.

<boost/accumulators/framework/accumulator_set.hpp>
* Replace use of is_base_and_derived with use of is_base_of, remove_const, and remove_reference.

<boost/accumulators/framework/parameters/accumulator.hpp>
<boost/accumulators/framework/parameters/sample.hpp>
<boost/accumulators/framework/parameters/weight.hpp>
<boost/accumulators/framework/parameters/weights.hpp>
* Replace use of deprecated BOOST_PARAMETER_KEYWORD with use of BOOST_PARAMETER_NAME.

<boost/accumulators/framework/accumulators/value_accumulator.hpp>
<boost/accumulators/framework/accumulators/reference_accumulator.hpp>
<boost/accumulators/framework/accumulators/external_accumulator.hpp>
<boost/accumulators/framework/accumulators/droppable_accumulator.hpp>
* Replace use of deprecated boost::parameter::keyword<>::get() with use of boost::parameter::keyword<>::instance.

"test/weighted_median.cpp"
* Disable statements that are causing runtime failures.

"test/Jamfile.cpp"
* Disable tests that are failing at runtime.
2018-12-23 14:21:32 -05:00
Oliver Ford
5ff527ec3b Fix #11437: correct immediate_rolling_mean
Corrects the immediate_rolling_mean calculation for unsigned
int, so that when a value lower than the previous value is added,
underflow does not occur.

Includes new regression test for this behavior.
2018-02-06 10:30:26 +00:00
Pieter Bastiaan Ober
39a065c38f Addition of 'rolling-variance' and 'rolling_moment'. Required splitting 'rolling_mean' into a lazy and immediate implementation. Documentation is updated accordingly. 2014-06-12 16:25:28 +02:00
Eric Niebler
a88bf04f69 remove executible flag 2014-01-10 23:11:37 -08:00
Eric Niebler
199787dffd fix comment typos, refs #7917
[SVN r83305]
2013-03-05 06:22:17 +00:00
Eric Niebler
4994681978 shorten filenames to meet boost guidelines
[SVN r77422]
2012-03-19 21:55:41 +00:00
Steven Watanabe
96aa662bbb Fix accumulators tests.
[SVN r74976]
2011-10-16 16:50:08 +00:00
Gennadiy Rozental
1384cab145 disambiguate
[SVN r74717]
2011-10-05 08:27:45 +00:00
Gennadiy Rozental
cfa6295a80 disambiguate
[SVN r74716]
2011-10-05 06:55:06 +00:00
Eric Niebler
ec9695251a add kahan sum, fixes #4471
[SVN r72045]
2011-05-19 12:06:12 +00:00
Troy D. Straszheim
753c28c695 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Eric Niebler
75de0b7ca8 portability fixed for gcc-4.4
[SVN r55076]
2009-07-22 01:34:11 +00:00
Eric Niebler
ddc66e0507 fix test bug
[SVN r50415]
2008-12-30 19:31:09 +00:00
Eric Niebler
e1e4f6e6ec add rolling_window, rolling_count, rolling_sum and rolling_mean
[SVN r50392]
2008-12-28 01:44:00 +00:00
Eric Niebler
1e18872abc add missing namespace qualifications, fixes #2502
[SVN r49805]
2008-11-16 21:17:28 +00:00
Michael A. Jackson
bbc210b07b Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00
Michael A. Jackson
750e5d3e27 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Eric Niebler
6e1c1ad9ba make immediate the default implementation for variance and weighted_variance
[SVN r46651]
2008-06-24 15:40:19 +00:00
Eric Niebler
b1474d4214 try disabling iterator debugging for intel-win toolset
[SVN r42789]
2008-01-15 07:46:51 +00:00
Eric Niebler
70d3437b26 disable iterator debugging for all msvc versions
[SVN r42624]
2008-01-08 21:40:52 +00:00
Eric Niebler
68fa3bd224 fix signed/unsigned warnings, clean up trailing whitespace
[SVN r42620]
2008-01-08 18:43:43 +00:00
Eric Niebler
89d24a9028 add accumulators
[SVN r42418]
2008-01-02 20:55:20 +00:00