Skip to content

Commit c08e0d1

Browse files
committed
Merge branch 'catch-value'
* catch-value: Catch exceptions by reference rather than by value.
2 parents b465531 + 70f6ee9 commit c08e0d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/ruby/rubycontainer.swg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ namespace swig
628628
try {
629629
r = swig::from< const Sequence* >( swig::getslice(self, i, j) );
630630
}
631-
catch( std::out_of_range ) {
631+
catch( std::out_of_range& ) {
632632
}
633633
return r;
634634
}
@@ -687,7 +687,7 @@ namespace swig
687687
r = swig::from< Sequence::value_type >( *(at) );
688688
$self->erase(at);
689689
}
690-
catch (std::out_of_range)
690+
catch (std::out_of_range&)
691691
{
692692
}
693693
return r;
@@ -757,7 +757,7 @@ namespace swig
757757
try {
758758
r = swig::from< Sequence::value_type >( *(swig::cgetpos(self, i)) );
759759
}
760-
catch( std::out_of_range ) {
760+
catch( std::out_of_range& ) {
761761
}
762762
return r;
763763
}
@@ -780,7 +780,7 @@ namespace swig
780780
try {
781781
r = swig::from< const Sequence* >( swig::getslice(self, i, j) );
782782
}
783-
catch( std::out_of_range ) {
783+
catch( std::out_of_range& ) {
784784
}
785785
return r;
786786
}
@@ -790,7 +790,7 @@ namespace swig
790790
try {
791791
r = swig::from< Sequence::value_type >( *(swig::cgetpos(self, i)) );
792792
}
793-
catch( std::out_of_range ) {
793+
catch( std::out_of_range& ) {
794794
}
795795
return r;
796796
}

0 commit comments

Comments
 (0)