Skip to content

Commit

Permalink
Merge pull request #170 from ankane/std-bad-alloc
Browse files Browse the repository at this point in the history
Fix for std::bad_alloc in MethodInfo
  • Loading branch information
jasonroelofs authored Oct 21, 2022
2 parents 123b19d + ae3173b commit 594e49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/rice/rice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2822,7 +2822,7 @@ namespace Rice
for (size_t i = this->args_.size(); i < argCount; i++)
{
Arg arg("arg_" + std::to_string(i));
this->args_.emplace_back(arg);
this->addArg(arg);
}

// TODO - so hacky but update the Arg positions
Expand Down
2 changes: 1 addition & 1 deletion rice/detail/MethodInfo.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Rice
for (size_t i = this->args_.size(); i < argCount; i++)
{
Arg arg("arg_" + std::to_string(i));
this->args_.emplace_back(arg);
this->addArg(arg);
}

// TODO - so hacky but update the Arg positions
Expand Down

0 comments on commit 594e49e

Please sign in to comment.