Skip to content

Commit

Permalink
move hints to the internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Dec 27, 2018
1 parent ee3424a commit aa67069
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toml/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ inline std::string format_error(const std::string& err_msg,
const toml::value& v, const std::string& comment,
std::vector<std::string> hints = {})
{
return detail::format_underline(err_msg, detail::get_region(v), comment, hints);
return detail::format_underline(err_msg, detail::get_region(v), comment,
std::move(hints));
}

inline std::string format_error(const std::string& err_msg,
Expand All @@ -814,7 +815,7 @@ inline std::string format_error(const std::string& err_msg,
{
return detail::format_underline(err_msg, detail::get_region(v1), comment1,
detail::get_region(v2), comment2,
hints);
std::move(hints));
}

}// toml
Expand Down

0 comments on commit aa67069

Please sign in to comment.