From: Uladzislau Paulovich Date: Wed, 21 Jun 2017 13:19:44 +0000 (-0700) Subject: Add missing uint32 type to folly::ProgramOptions::gFlagAdders X-Git-Tag: v2017.06.26.00~28 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=f975d3c54800b7065985e5e548ce1d91fef4926c;hp=af5ec753ebabe7de1fc021951edd61d0f49d15a8 Add missing uint32 type to folly::ProgramOptions::gFlagAdders Summary: Absence of "uint32" type in gFlagAdders map breaks all apps that use gflags of this type (i.e. define a flag with "DEFINE_uint32"). Reviewed By: WillerZ Differential Revision: D5286720 fbshipit-source-id: c02bd959cb9ea9a47fba1e01429181ba09edf5dd --- diff --git a/folly/experimental/ProgramOptions.cpp b/folly/experimental/ProgramOptions.cpp index 73c471ff..842cfbca 100644 --- a/folly/experimental/ProgramOptions.cpp +++ b/folly/experimental/ProgramOptions.cpp @@ -237,6 +237,7 @@ const std::unordered_map gFlagAdders = { X("bool", bool) X("int32", int32_t) X("int64", int64_t) + X("uint32", uint32_t) X("uint64", uint64_t) X("double", double) X("string", std::string)