From 589b40daf151ebcc1230541f9352a942b131a828 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Fri, 17 Feb 2017 19:46:25 +0100 Subject: [PATCH] Correctly handle type reference flag values --- src/anbox/cli.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/anbox/cli.h b/src/anbox/cli.h index b5c58fc..f1831ce 100644 --- a/src/anbox/cli.h +++ b/src/anbox/cli.h @@ -154,9 +154,7 @@ class TypedReferenceFlag : public Flag { void specify_option(Flag::Specification& spec) override { spec = boost::program_options::value()->notifier([&](const std::string& s) { std::stringstream ss{s}; - T value; - ss >> value; - value_ = value; + ss >> value_.get(); }); }