Skip to content

Commit 9bd2351

Browse files
committed
LevenbergMarquardtTest : Replace boost::array with regular array
In Boost 1.77, `evaluate_polynomial` stopped supporting `boost::array`, and started supporting `std::array` instead. We'd prefer to use `std::array` too, but to maintain compatibility with both old and new boost, we just use a plain old array instead.
1 parent e47d360 commit 9bd2351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IECore/LevenbergMarquardtTest.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class LevenbergMarquardtTestPolynomialFit<T>::Fn
136136
)
137137
{
138138

139-
boost::array<T, N> testCoeffs;
139+
T testCoeffs[N];
140140
for ( unsigned i = 0; i < N; i ++ )
141141
{
142142
testCoeffs[i] = parameters->readable()[i];
@@ -170,7 +170,7 @@ class LevenbergMarquardtTestPolynomialFit<T>::Fn
170170
protected :
171171

172172
unsigned m_num;
173-
boost::array<T, N> m_coeffs;
173+
T m_coeffs[N];
174174
};
175175

176176
template<typename T>

0 commit comments

Comments
 (0)