Skip to content

Commit ce5309a

Browse files
authored
flaw in b2::bind::operator+ fixed (#485)
flaw in b2::bind::operator+ fixed
1 parent e64dc99 commit ce5309a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/src/history.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
== Version 5.5.0
55

6+
* Fix jam/{CPP} bind definitions of 4 or more values in a single
7+
declared argument not actually adding all the definitions.
8+
-- _Paolo Pastori_
9+
610
== Version 5.4.2
711

812
Fix detection of Visual Studio 2026 to account for non-native tools being

src/engine/bind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ template <int C>
131131
arg_<C + 1> operator+(const arg_<C> & a, const param_ & b)
132132
{
133133
arg_<C + 1> result;
134-
for (std::size_t i = 0; i < C - 1; ++i) result.args[i] = a.args[i];
134+
for (std::size_t i = 0; i < C; ++i) result.args[i] = a.args[i];
135135
result.args[C] = b;
136136
return result;
137137
}

0 commit comments

Comments
 (0)