Skip to content

Commit

Permalink
Add break statements inadvertently omitted in #310
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Apr 10, 2024
1 parent a32906b commit d8e072a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions include/boost/serialization/extended_type_info_no_rtti.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ class extended_type_info_no_rtti :
va_start(ap, count);
switch(count){
case 0:
r = factory<typename boost::remove_const< T >::type, 0>(ap);
r = factory<typename boost::remove_const< T >::type, 0>(ap); break;
case 1:
r = factory<typename boost::remove_const< T >::type, 1>(ap);
r = factory<typename boost::remove_const< T >::type, 1>(ap); break;
case 2:
r = factory<typename boost::remove_const< T >::type, 2>(ap);
r = factory<typename boost::remove_const< T >::type, 2>(ap); break;
case 3:
r = factory<typename boost::remove_const< T >::type, 3>(ap);
r = factory<typename boost::remove_const< T >::type, 3>(ap); break;
case 4:
r = factory<typename boost::remove_const< T >::type, 4>(ap);
r = factory<typename boost::remove_const< T >::type, 4>(ap); break;
default:
BOOST_ASSERT(false); // too many arguments
// throw exception here?
Expand Down
10 changes: 5 additions & 5 deletions include/boost/serialization/extended_type_info_typeid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ class extended_type_info_typeid :
va_start(ap, count);
switch(count){
case 0:
r = factory<typename boost::remove_const< T >::type, 0>(ap);
r = factory<typename boost::remove_const< T >::type, 0>(ap); break;
case 1:
r = factory<typename boost::remove_const< T >::type, 1>(ap);
r = factory<typename boost::remove_const< T >::type, 1>(ap); break;
case 2:
r = factory<typename boost::remove_const< T >::type, 2>(ap);
r = factory<typename boost::remove_const< T >::type, 2>(ap); break;
case 3:
r = factory<typename boost::remove_const< T >::type, 3>(ap);
r = factory<typename boost::remove_const< T >::type, 3>(ap); break;
case 4:
r = factory<typename boost::remove_const< T >::type, 4>(ap);
r = factory<typename boost::remove_const< T >::type, 4>(ap); break;
default:
BOOST_ASSERT(false); // too many arguments
// throw exception here?
Expand Down

0 comments on commit d8e072a

Please sign in to comment.