提交 7e2b0c16 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #44 from morphis/bug/cli-type-reference-no-value

Correctly handle type reference flag values
......@@ -154,9 +154,7 @@ class TypedReferenceFlag : public Flag {
void specify_option(Flag::Specification& spec) override {
spec = boost::program_options::value<std::string>()->notifier([&](const std::string& s) {
std::stringstream ss{s};
T value;
ss >> value;
value_ = value;
ss >> value_.get();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册