Commit 29193aca authored by Tom Hughes's avatar Tom Hughes Committed by facebook-github-bot-9

Implement adjacent_tokens_only() for GFlagValueSemanticBase

Summary: Needed for boost 1.59.0 which added this as a pure virtual function
in the value_semantic base class. Fixes #314.
Closes #315

Reviewed By: @yfeldblum

Differential Revision: D2419035

Pulled By: @JoelMarcey
parent f0fdd87a
......@@ -19,6 +19,7 @@
#include <unordered_map>
#include <unordered_set>
#include <boost/version.hpp>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <folly/Conv.h>
......@@ -80,6 +81,9 @@ class GFlagValueSemanticBase : public po::value_semantic {
: info_(std::move(info)) { }
std::string name() const override { return "arg"; }
#if BOOST_VERSION >= 105900
bool adjacent_tokens_only() const override { return false; }
#endif
bool is_composing() const override { return false; }
bool is_required() const override { return false; }
// We handle setting the GFlags from parse(), so notify() does nothing.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment