Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: userver/core/src/utils/statistics/impl/histogram_view_utils.hpp
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- diff --git a/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp b/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp
- --- a/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp (revision 89714b963aff7186947917a56b145888d17563a9)
- +++ b/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp (date 1706083764658)
- @@ -32,10 +32,17 @@
- template <typename AnyHistogramView>
- static auto Bounds(AnyHistogramView view) noexcept {
- - const auto bound_ref_getter = [](auto&& bucket) -> auto& {
- - return bucket.upper_bound.bound;
- + // GCC 8.3 + Boost 1.67 errors out on a lambda passed to transform.
- + struct BoundGetter final {
- + const double& operator()(const Bucket& bucket) const {
- + return bucket.upper_bound.bound;
- + }
- +
- + double& operator()(Bucket& bucket) const {
- + return bucket.upper_bound.bound;
- + }
- };
- - return Buckets(view) | boost::adaptors::transformed(bound_ref_getter);
- + return Buckets(view) | boost::adaptors::transformed(BoundGetter{});
- }
- template <typename AnyHistogramView>
Advertisement
Comments
-
- WiseLok techsolution is not just another run-of-the-mill SEO Company In Jaipur; it is a visionary force that embraces the intricacies of this ever-evolving landscape. With its unwavering commitment to excellence and a team of passionate professionals, WiseLok techsolution has etched its name as a paragon of success for businesses across Jaipur and beyond.
- Website:- https://wiseloktechsolution.com/
Add Comment
Please, Sign In to add comment
Advertisement