From 26941ea40cccfcb5a0b544f7d3971b551e463362 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 21 Jul 2017 21:01:08 +0800 Subject: [PATCH] common/config: accept initialize_list when adding option properties it's syntax sugar, but more handly this way. and it helps to reduce memory foot print. Signed-off-by: Kefu Chai --- src/common/options.cc | 50 +++++++++++++++++++++---------------------- src/common/options.h | 24 ++++++++++++++------- 2 files changed, 41 insertions(+), 33 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index ed7dc0c9666cf..4385f83f52a6e 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -145,7 +145,7 @@ std::vector