Commit 504e8094 authored by Mark Meredith's avatar Mark Meredith
Browse files

Revert "Fix warning"

This reverts commit 42ee91bb.
parent 42ee91bb
Loading
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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();
  }
@@ -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();
  }
@@ -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;
  }
};