Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.12'

- name: Install docbook dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion doc/changelog.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* Replace `detail::span` and `detail::make_span` with implementations in `boost::core`
* Documentation improvements
* Protect usage of `std::min` and `std::max` in some cases, contributed by Han Jiang (min,max macros are illegially set by popular Windows headers so we need to work around)
* Added test to catch usage of unprotected min,max tokens in the library in the future
* Added test to catch usage of unprotected min,max tokens in the library in the future
* Fixes to support latest clang-14 and deduction guides in gcc-11+

[heading Boost 1.81]
Expand Down
4 changes: 1 addition & 3 deletions examples/guide_custom_axis_multiple_value_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ struct my_axis : axis::regular<double> {
converter_type(double x) : val_{x} {}
};

axis::index_type index(converter_type x) const {
return base_type::index(x.val_);
}
axis::index_type index(converter_type x) const { return base_type::index(x.val_); }
};

int main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/guide_fill_histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

//[ guide_fill_histogram

#include <boost/histogram.hpp>
#include <boost/core/span.hpp>
#include <boost/histogram.hpp>
#include <cassert>
#include <functional>
#include <numeric>
Expand Down
4 changes: 3 additions & 1 deletion include/boost/histogram/accumulators/collector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class collector {
explicit collector(Args&&... args) : container_(std::forward<Args>(args)...) {}

// make template only match if forwarding args to container is valid
template <class T, typename... Args, class = decltype(container_type(std::initializer_list<T>(),std::declval<Args>()...))>
template <class T, typename... Args,
class = decltype(container_type(std::initializer_list<T>(),
std::declval<Args>()...))>
explicit collector(std::initializer_list<T> list, Args&&... args)
: container_(list, std::forward<Args>(args)...) {}

Expand Down
5 changes: 3 additions & 2 deletions include/boost/histogram/detail/term_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ inline bool utf8() {
inline int width() {
int w = 0;
#if defined TIOCGWINSZ
struct winsize ws{};
struct winsize ws {};
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == 0)
w = (std::max)(static_cast<int>(ws.ws_col), 0); // not sure if ws_col can be less than 0
w = (std::max)(static_cast<int>(ws.ws_col),
0); // not sure if ws_col can be less than 0
#endif
env_t env("COLUMNS");
const int col = (std::max)(static_cast<int>(env), 0);
Expand Down
2 changes: 1 addition & 1 deletion include/boost/histogram/literals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ constexpr unsigned parse_number(unsigned n, char f, Rest... rest) {
namespace literals {
/// Suffix operator to generate literal compile-time numbers, 0_c, 12_c, etc.
template <char... digits>
auto operator ""_c() {
auto operator""_c() {
return std::integral_constant<unsigned, detail::parse_number(0, digits...)>();
}
} // namespace literals
Expand Down
3 changes: 2 additions & 1 deletion include/boost/histogram/utility/clopper_pearson_interval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class clopper_pearson_interval : public binomial_proportion_interval<ValueType>
@param successes Number of successful trials.
@param failures Number of failed trials.
*/
interval_type operator()(value_type successes, value_type failures) const noexcept override {
interval_type operator()(value_type successes,
value_type failures) const noexcept override {
// analytical solution when successes or failures are zero
// T. Mans (2014), Electronic Journal of Statistics. 8 (1): 817-840.
// arXiv:1303.1288. doi:10.1214/14-EJS909.
Expand Down
2 changes: 1 addition & 1 deletion test/detail_array_wrapper_serialization_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct dummy_array_wrapper {
std::size_t size;
template <class Archive>
void serialize(Archive& ar, unsigned /* version */) {
for (auto&& x : boost::make_span(ptr, size)) ar & x;
for (auto&& x : boost::make_span(ptr, size)) ar& x;
}
};

Expand Down
Loading