equal
deleted
inserted
replaced
213 |
213 |
214 ValueWriter(const Value& _value, const Writer& _writer) |
214 ValueWriter(const Value& _value, const Writer& _writer) |
215 : value(_value), writer(_writer) {} |
215 : value(_value), writer(_writer) {} |
216 |
216 |
217 virtual void write(std::ostream& os) { |
217 virtual void write(std::ostream& os) { |
218 writer.write(is, value); |
218 writer.write(os, value); |
219 } |
219 } |
220 private: |
220 private: |
221 const Value& value; |
221 const Value& value; |
222 Writer writer; |
222 Writer writer; |
223 }; |
223 }; |