Skip to content

Commit 1caff7f

Browse files
committed
Change second occurrence of the same code in mp_count.hpp to match
1 parent 9b8d36e commit 1caff7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/mp11/detail/mp_count.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ template<template<class...> class P, class... T> constexpr std::size_t cx_count_
9898

9999
std::size_t r = 0;
100100

101-
for( std::size_t i = 1; i < sizeof...(T) + 1; ++i )
101+
for( std::size_t i = 0; i < sizeof...(T); ++i )
102102
{
103-
r += a[ i ];
103+
r += a[ i+1 ];
104104
}
105105

106106
return r;

0 commit comments

Comments
 (0)