Skip to content

Commit 9b8d36e

Browse files
authored
Merge pull request #98 from tjcw/issue-97
Candidate fix
2 parents 8ceb48b + 44a731d commit 9b8d36e

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
@@ -51,9 +51,9 @@ template<class V, class... T> constexpr std::size_t cx_count()
5151

5252
std::size_t r = 0;
5353

54-
for( std::size_t i = 1; i < sizeof...(T) + 1; ++i )
54+
for( std::size_t i = 0; i < sizeof...(T); ++i )
5555
{
56-
r += a[ i ];
56+
r += a[ i+1 ];
5757
}
5858

5959
return r;

0 commit comments

Comments
 (0)