From aee6278458a6d505cabd7e46f5422880e33738df Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Fri, 13 Sep 2024 07:16:31 -0700 Subject: [PATCH] migrate from untagged array-range dynamic ctor (assorted) Reviewed By: Orvid Differential Revision: D62552803 fbshipit-source-id: 66a5594083c54c3c10f0319c3248e1251d37662b --- fbpcs/emp_games/lift/common/LiftMetrics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbpcs/emp_games/lift/common/LiftMetrics.cpp b/fbpcs/emp_games/lift/common/LiftMetrics.cpp index 00f72527d..3bf079662 100644 --- a/fbpcs/emp_games/lift/common/LiftMetrics.cpp +++ b/fbpcs/emp_games/lift/common/LiftMetrics.cpp @@ -138,9 +138,9 @@ LiftMetrics LiftMetrics::fromJson(const std::string& str) { folly::dynamic LiftMetrics::toDynamic() const { auto testConvHistogramDynamic = - folly::dynamic(testConvHistogram.begin(), testConvHistogram.end()); + folly::dynamic::array_range(testConvHistogram); auto controlConvHistogramDynamic = - folly::dynamic(controlConvHistogram.begin(), controlConvHistogram.end()); + folly::dynamic::array_range(controlConvHistogram); return folly::dynamic::object("testConversions", testConversions)( "controlConversions", controlConversions)(