- this constructor was added for similarity with std::vector, but continues to cause various annoyances. The main problem is that the templated parameter tends to grab anything that is not a perfect match for other constructors. Typically seen with two integers (in 64-bit mode), but various other cases as well. If required, the ListOps::create() function provides a lengthier alternative but one that can also incorporate transformations. Eg, pointField pts = ....; List<scalar> mags ( List<scalar>::create ( pts.begin(), pts.end(), [](const vector& v){ return magSqr(v); } ); |
||
---|---|---|
.. | ||
case1 | ||
Make | ||
Test-zoneDistribute.C |