From 48d6690f0e028ed6c4abf2b11e154821d56b0569 Mon Sep 17 00:00:00 2001 From: Daniel Rolf Date: Mon, 11 Dec 2023 07:27:31 -0800 Subject: [PATCH] BE Put local SignedValueHandler into anonymous namespace to avoid shadowing Reviewed By: Orvid Differential Revision: D51939415 fbshipit-source-id: 63703ae18fb776481e26f113e99facc720a9d231 --- folly/Conv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/folly/Conv.cpp b/folly/Conv.cpp index d677f5847b2..11383e38477 100644 --- a/folly/Conv.cpp +++ b/folly/Conv.cpp @@ -463,6 +463,8 @@ template Expected str_to_floating( template Expected str_to_floating( StringPiece* src) noexcept; +namespace { + /** * This class takes care of additional processing needed for signed values, * like leading sign character and overflow checks. @@ -530,6 +532,8 @@ class SignedValueHandler { Expected finalize(T value) { return value; } }; +} // namespace + /** * String represented as a pair of pointers to char to signed/unsigned * integrals. Assumes NO whitespace before or after, and also that the