Skip to content

Commit

Permalink
Change second occurrence of the same code in mp_count.hpp to match
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 22, 2024
1 parent 9b8d36e commit 1caff7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/mp11/detail/mp_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ template<template<class...> class P, class... T> constexpr std::size_t cx_count_

std::size_t r = 0;

for( std::size_t i = 1; i < sizeof...(T) + 1; ++i )
for( std::size_t i = 0; i < sizeof...(T); ++i )
{
r += a[ i ];
r += a[ i+1 ];
}

return r;
Expand Down

0 comments on commit 1caff7f

Please sign in to comment.