1
0
forked from boostorg/mp11

Change second occurrence of the same code in mp_count.hpp to match

This commit is contained in:
Peter Dimov
2024-10-22 19:50:32 +03:00
parent 9b8d36ec84
commit 1caff7ffa9

View File

@ -98,9 +98,9 @@ template<template<class...> class P, class... T> constexpr std::size_t cx_count_
std::size_t r = 0; 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; return r;