Don't make copies of std::string or fbstring when converting.
Summary: This overload of estimateSpaceNeeded was taking a Src by value, but Src is constrained by IsSomeString which only returns true for std::string or fbstring, so this was inducing a copy in any situation where folly::to<> is used with varargs which contain fb/string arguments. Reviewed By: yfeldblum Differential Revision: D6059517 fbshipit-source-id: adc239f9049e161fc4b750bae0e3de5dbdcd1bfc
Showing
Please register or sign in to comment