Advertisement
AntonyZhilin

Untitled

Jan 24th, 2024
927
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.33 KB | None | 0 0
  1. Index: userver/core/src/utils/statistics/impl/histogram_view_utils.hpp
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. diff --git a/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp b/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp
  7. --- a/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp   (revision 89714b963aff7186947917a56b145888d17563a9)
  8. +++ b/userver/core/src/utils/statistics/impl/histogram_view_utils.hpp   (date 1706083764658)
  9. @@ -32,10 +32,17 @@
  10.  
  11.    template <typename AnyHistogramView>
  12.    static auto Bounds(AnyHistogramView view) noexcept {
  13. -    const auto bound_ref_getter = [](auto&& bucket) -> auto& {
  14. -      return bucket.upper_bound.bound;
  15. +    // GCC 8.3 + Boost 1.67 errors out on a lambda passed to transform.
  16. +    struct BoundGetter final {
  17. +      const double& operator()(const Bucket& bucket) const {
  18. +        return bucket.upper_bound.bound;
  19. +      }
  20. +
  21. +      double& operator()(Bucket& bucket) const {
  22. +        return bucket.upper_bound.bound;
  23. +      }
  24.      };
  25. -    return Buckets(view) | boost::adaptors::transformed(bound_ref_getter);
  26. +    return Buckets(view) | boost::adaptors::transformed(BoundGetter{});
  27.    }
  28.  
  29.    template <typename AnyHistogramView>
  30.  
Advertisement
Comments
  • # text 0.39 KB | 0 0
    1. 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.
    2.  
    3. Website:- https://wiseloktechsolution.com/
Add Comment
Please, Sign In to add comment
Advertisement