提交 589b40da 编写于 作者: S Simon Fels

Correctly handle type reference flag values

上级 c8a5a17d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册