Skip to content

Commit

Permalink
Add new method to return errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ricardo Ziviani <[email protected]>
  • Loading branch information
jrziviani committed Feb 25, 2019
1 parent 0679a16 commit 9d211f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/vector_ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ namespace amps
vector_ostreambuf &operator=(const vector_ostreambuf&) = delete;
vector_ostreambuf &operator=(vector_ostreambuf&&) = delete;

const std::vector<std::string> get_errors() const
{
return data_;
}

std::string get_str(size_t index) const
{
if (index >= data_.size()) {
Expand Down

0 comments on commit 9d211f6

Please sign in to comment.