Merge pull request #44 from morphis/bug/cli-type-reference-no-value
Correctly handle type reference flag values
This commit is contained in:
commit
7e2b0c16df
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue