Change AsyncSSLSocket getSecurityProtocol to handle unencrypted mode
[folly.git] / folly / experimental / ProgramOptions.cpp
index e50f2655dfa999601380cae37cf2ae37b6ac3951..21f0fddc29290160553dbe46540ac1a784286bf2 100644 (file)
@@ -83,7 +83,9 @@ class GFlagValueSemanticBase : public po::value_semantic {
 
   std::string name() const override { return "arg"; }
 #if BOOST_VERSION >= 105900
-  bool adjacent_tokens_only() const override { return false; }
+  bool adjacent_tokens_only() const {
+    return false;
+  }
 #endif
   bool is_composing() const override { return false; }
   bool is_required() const override { return false; }
@@ -235,13 +237,14 @@ const std::unordered_map<std::string, FlagAdder> 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)
 #undef X
 };
 
-}  // namespace
+} // namespace
 
 po::options_description getGFlags(ProgramOptionsStyle style) {
   static const std::unordered_set<std::string> gSkipFlags{
@@ -313,7 +316,7 @@ NestedCommandLineParseResult doParseNestedCommandLine(
   return result;
 }
 
-}  // namespace
+} // namespace
 
 NestedCommandLineParseResult parseNestedCommandLine(
     int argc, const char* const argv[],
@@ -327,4 +330,4 @@ NestedCommandLineParseResult parseNestedCommandLine(
   return doParseNestedCommandLine(po::command_line_parser(cmdline), desc);
 }
 
-}  // namespaces
+} // namespace folly