Loading src/parser.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -109,7 +109,8 @@ template <> struct action<double_> { template <> struct action<num_array> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.current_value = st.current_num_vec; st.current_num_vec.clear(); } Loading @@ -117,7 +118,8 @@ template <> struct action<num_array> { template <> struct action<str_array> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.current_value = st.current_str_vec; st.current_str_vec.clear(); } Loading @@ -125,7 +127,8 @@ template <> struct action<str_array> { template <> struct action<keyval_line> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.info[st.current_key] = st.current_value; } }; Loading Loading
src/parser.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -109,7 +109,8 @@ template <> struct action<double_> { template <> struct action<num_array> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.current_value = st.current_num_vec; st.current_num_vec.clear(); } Loading @@ -117,7 +118,8 @@ template <> struct action<num_array> { template <> struct action<str_array> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.current_value = st.current_str_vec; st.current_str_vec.clear(); } Loading @@ -125,7 +127,8 @@ template <> struct action<str_array> { template <> struct action<keyval_line> { template <typename Input> static void apply(parser_state &st) { static void apply(const Input &in, parser_state &st) { std::stringstream ss(in.string()); st.info[st.current_key] = st.current_value; } }; Loading