Pass heavy arguments by ref

This commit is contained in:
Victor Zverovich
2018-08-31 14:42:45 -07:00
parent 8dc69b9da9
commit fbc38b9083
2 changed files with 6 additions and 5 deletions

View File

@@ -720,7 +720,7 @@ class basic_format_arg {
template <typename Visitor, typename Ctx>
friend FMT_CONSTEXPR typename internal::result_of<Visitor(int)>::type
visit(Visitor &&vis, basic_format_arg<Ctx> arg);
visit(Visitor &&vis, const basic_format_arg<Ctx> &arg);
friend class basic_format_args<Context>;
friend class internal::arg_map<Context>;