Skip to content

Commit

Permalink
Deprecate folly::vformat
Browse files Browse the repository at this point in the history
Reviewed By: vitaut

Differential Revision: D30676171

fbshipit-source-id: f820b1c08750c4d844925a82d5fd710bc8a1ca5c
  • Loading branch information
Jolene Tan authored and facebook-github-bot committed Sep 14, 2021
1 parent 94f01f8 commit fb5c25d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion folly/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ inline std::string sformat(StringPiece fmt, Args&&... args) {
* but the latter is cleaner.
*/
template <class Container>
Formatter<true, Container> vformat(StringPiece fmt, Container&& container) {
[[deprecated(
"Use fmt::format instead of folly::vformat for better performance, build "
"times and compatibility with std::format")]] //
Formatter<true, Container>
vformat(StringPiece fmt, Container&& container) {
return Formatter<true, Container>(fmt, std::forward<Container>(container));
}

Expand Down

0 comments on commit fb5c25d

Please sign in to comment.