From 9d211f6eac07b1c88588cbb02d33966e2b7d9080 Mon Sep 17 00:00:00 2001 From: Jose Ricardo Ziviani Date: Mon, 25 Feb 2019 18:23:43 -0300 Subject: [PATCH] Add new method to return errors Signed-off-by: Jose Ricardo Ziviani --- include/vector_ostream.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/vector_ostream.h b/include/vector_ostream.h index 61f5810..8aa95fd 100644 --- a/include/vector_ostream.h +++ b/include/vector_ostream.h @@ -78,6 +78,11 @@ namespace amps vector_ostreambuf &operator=(const vector_ostreambuf&) = delete; vector_ostreambuf &operator=(vector_ostreambuf&&) = delete; + const std::vector get_errors() const + { + return data_; + } + std::string get_str(size_t index) const { if (index >= data_.size()) {