-
Notifications
You must be signed in to change notification settings - Fork 737
Add boost.histogram #8296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add boost.histogram #8296
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fe9347c
Add boost.histogram
spinningthelock 1b3ef14
Add boost metapackage dep
spinningthelock 90864b2
Add missing deps
spinningthelock ebf039f
Add patch to fix missing includes
spinningthelock fb7cc72
Use C++17 in presubmit becouse boost.serialization bring in boost.spirit
spinningthelock 0a03034
Add missing include for cstddef
spinningthelock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| module( | ||
| name = "boost.histogram", | ||
| version = "1.89.0.bcr.2", | ||
| bazel_compatibility = [">=7.6.0"], | ||
| compatibility_level = 0, | ||
| ) | ||
|
|
||
| bazel_dep(name = "boost", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.config", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.core", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.math", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.mp11", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.serialization", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.throw_exception", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "boost.variant2", version = "1.89.0.bcr.2") | ||
| bazel_dep(name = "rules_cc", version = "0.2.17") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
|
||
| cc_library( | ||
| name = "boost.histogram", | ||
| hdrs = glob([ | ||
| "include/**/*.hpp", | ||
| ]), | ||
| features = ["parse_headers"], | ||
| includes = ["include"], | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "@boost.config", | ||
| "@boost.core", | ||
| "@boost.math", | ||
| "@boost.mp11", | ||
| "@boost.serialization", | ||
| "@boost.throw_exception", | ||
| "@boost.variant2", | ||
| ], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
modules/boost.histogram/1.89.0.bcr.2/patches/add_missing_includes.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| diff --git a/include/boost/histogram/detail/static_vector.hpp b/include/boost/histogram/detail/static_vector.hpp | ||
| --- a/include/boost/histogram/detail/static_vector.hpp | ||
| +++ b/include/boost/histogram/detail/static_vector.hpp | ||
| @@ -9,6 +9,7 @@ | ||
|
|
||
| #include <algorithm> | ||
| #include <boost/throw_exception.hpp> | ||
| +#include <cassert> | ||
| #include <stdexcept> | ||
|
|
||
| namespace boost { | ||
| diff --git a/include/boost/histogram/detail/relaxed_tuple_size.hpp b/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| --- a/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| +++ b/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_RELAXED_TUPLE_SIZE_HPP | ||
|
|
||
| #include <type_traits> | ||
| +#include <tuple> | ||
|
|
||
| namespace boost { | ||
| namespace histogram { | ||
| diff --git a/include/boost/histogram/detail/optional_index.hpp b/include/boost/histogram/detail/optional_index.hpp | ||
| --- a/include/boost/histogram/detail/optional_index.hpp | ||
| +++ b/include/boost/histogram/detail/optional_index.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_OPTIONAL_INDEX_HPP | ||
|
|
||
| #include <cassert> | ||
| +#include <cstddef> | ||
| #include <cstdint> | ||
|
|
||
| namespace boost { | ||
| diff --git a/include/boost/histogram/detail/priority.hpp b/include/boost/histogram/detail/priority.hpp | ||
| --- a/include/boost/histogram/detail/priority.hpp | ||
| +++ b/include/boost/histogram/detail/priority.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP | ||
|
|
||
| #include <cstdint> | ||
| +#include <cstddef> | ||
|
|
||
| namespace boost { | ||
| namespace histogram { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| matrix: | ||
| unix_platform: | ||
| - debian13 | ||
| - macos_arm64 | ||
| - ubuntu2404 | ||
| - ubuntu2404_arm64 | ||
| windows_platform: | ||
| - windows | ||
| bazel: [7.x, 8.x, 9.x, rolling] | ||
| tasks: | ||
| unix_verify_targets: | ||
| name: Verify build targets | ||
| platform: ${{ unix_platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - '--cxxopt=-std=c++17' | ||
| - '--process_headers_in_dependencies' | ||
| build_targets: | ||
| - '@boost.histogram//:boost.histogram' | ||
| windows_verify_targets: | ||
| name: Verify build targets | ||
| platform: ${{ windows_platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - '--cxxopt=/std:c++17' | ||
| - '--process_headers_in_dependencies' | ||
| build_targets: | ||
| - '@boost.histogram//:boost.histogram' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "url": "https://github.com/boostorg/histogram/archive/refs/tags/boost-1.89.0.tar.gz", | ||
| "integrity": "sha256-tgN5T3FmC6CJLVv93LvB+dr3et9lAGeh7J7MZ4ueyoM=", | ||
| "strip_prefix": "histogram-boost-1.89.0", | ||
| "overlay": { | ||
| "BUILD.bazel": "sha256-YFC+MFOaysaIjRwnhhVascxdfj+6/nc+Bs+4rDIfNeU=" | ||
| }, | ||
| "patch_strip": 1, | ||
| "patches": { | ||
| "add_missing_includes.patch": "sha256-KlpUVGuhcm+Xfjuh2XObRz9PAb5aeeprdD3ZOWI9niU=" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| module( | ||
| name = "boost.histogram", | ||
| version = "1.90.0.bcr.1", | ||
| bazel_compatibility = [">=7.6.0"], | ||
| compatibility_level = 0, | ||
| ) | ||
|
|
||
| bazel_dep(name = "boost", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.config", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.core", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.math", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.mp11", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.serialization", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.throw_exception", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "boost.variant2", version = "1.90.0.bcr.1") | ||
| bazel_dep(name = "rules_cc", version = "0.2.17") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
|
||
| cc_library( | ||
| name = "boost.histogram", | ||
| hdrs = glob([ | ||
| "include/**/*.hpp", | ||
| ]), | ||
| features = ["parse_headers"], | ||
| includes = ["include"], | ||
| visibility = ["//visibility:public"], | ||
| deps = [ | ||
| "@boost.config", | ||
| "@boost.core", | ||
| "@boost.math", | ||
| "@boost.mp11", | ||
| "@boost.serialization", | ||
| "@boost.throw_exception", | ||
| "@boost.variant2", | ||
| ], | ||
| ) |
44 changes: 44 additions & 0 deletions
44
modules/boost.histogram/1.90.0.bcr.1/patches/add_missing_includes.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| diff --git a/include/boost/histogram/detail/static_vector.hpp b/include/boost/histogram/detail/static_vector.hpp | ||
| --- a/include/boost/histogram/detail/static_vector.hpp | ||
| +++ b/include/boost/histogram/detail/static_vector.hpp | ||
| @@ -9,6 +9,7 @@ | ||
|
|
||
| #include <algorithm> | ||
| #include <boost/throw_exception.hpp> | ||
| +#include <cassert> | ||
| #include <stdexcept> | ||
|
|
||
| namespace boost { | ||
| diff --git a/include/boost/histogram/detail/relaxed_tuple_size.hpp b/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| --- a/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| +++ b/include/boost/histogram/detail/relaxed_tuple_size.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_RELAXED_TUPLE_SIZE_HPP | ||
|
|
||
| #include <type_traits> | ||
| +#include <tuple> | ||
|
|
||
| namespace boost { | ||
| namespace histogram { | ||
| diff --git a/include/boost/histogram/detail/optional_index.hpp b/include/boost/histogram/detail/optional_index.hpp | ||
| --- a/include/boost/histogram/detail/optional_index.hpp | ||
| +++ b/include/boost/histogram/detail/optional_index.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_OPTIONAL_INDEX_HPP | ||
|
|
||
| #include <cassert> | ||
| +#include <cstddef> | ||
| #include <cstdint> | ||
|
|
||
| namespace boost { | ||
| diff --git a/include/boost/histogram/detail/priority.hpp b/include/boost/histogram/detail/priority.hpp | ||
| --- a/include/boost/histogram/detail/priority.hpp | ||
| +++ b/include/boost/histogram/detail/priority.hpp | ||
| @@ -8,6 +8,7 @@ | ||
| #define BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP | ||
|
|
||
| #include <cstdint> | ||
| +#include <cstddef> | ||
|
|
||
| namespace boost { | ||
| namespace histogram { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| matrix: | ||
| unix_platform: | ||
| - debian13 | ||
| - macos_arm64 | ||
| - ubuntu2404 | ||
| - ubuntu2404_arm64 | ||
| windows_platform: | ||
| - windows | ||
| bazel: [7.x, 8.x, 9.x, rolling] | ||
| tasks: | ||
| unix_verify_targets: | ||
| name: Verify build targets | ||
| platform: ${{ unix_platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - '--cxxopt=-std=c++17' | ||
| - '--process_headers_in_dependencies' | ||
| build_targets: | ||
| - '@boost.histogram//:boost.histogram' | ||
| windows_verify_targets: | ||
| name: Verify build targets | ||
| platform: ${{ windows_platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - '--cxxopt=/std:c++17' | ||
| - '--process_headers_in_dependencies' | ||
| build_targets: | ||
| - '@boost.histogram//:boost.histogram' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "url": "https://github.com/boostorg/histogram/archive/refs/tags/boost-1.90.0.tar.gz", | ||
| "integrity": "sha256-Ua/Byi2MfLWyHnEfsIuQ8SN89/gGlNkJQXSNbm0MYG4=", | ||
| "strip_prefix": "histogram-boost-1.90.0", | ||
| "overlay": { | ||
| "BUILD.bazel": "sha256-YFC+MFOaysaIjRwnhhVascxdfj+6/nc+Bs+4rDIfNeU=" | ||
| }, | ||
| "patch_strip": 1, | ||
| "patches": { | ||
| "add_missing_includes.patch": "sha256-KlpUVGuhcm+Xfjuh2XObRz9PAb5aeeprdD3ZOWI9niU=" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "homepage": "http://boost.org/libs/histogram", | ||
| "maintainers": [ | ||
| { | ||
| "email": "github@automi.us", | ||
| "github": "spinningthelock", | ||
| "github_user_id": 201634024, | ||
| "name": "Arjuna Ariyaratne" | ||
| }, | ||
| { | ||
| "email": "daisuke.nishimatsu1021@gmail.com", | ||
| "github": "wep21", | ||
| "github_user_id": 42202095, | ||
| "name": "Daisuke Nishimatsu" | ||
| }, | ||
| { | ||
| "email": "julian.amann@tum.de", | ||
| "github": "Vertexwahn", | ||
| "github_user_id": 3775001, | ||
| "name": "Julian Amann" | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:boostorg/histogram" | ||
| ], | ||
| "versions": [ | ||
| "1.89.0.bcr.2", | ||
| "1.90.0.bcr.1" | ||
| ], | ||
| "yanked_versions": {} | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.