- the iterator/const_iterator now skip any nullptr entries, which enables the following code to work even if the PtrList contains nullptr: for (const auto& intf : interfaces) { // Do something ... } - this is a change in behaviour compared to OpenFOAM-v2212 and earlier, but is non-breaking: * Lists without null entries will traverse exactly as before. * Lists with null entries will now traverse correctly without provoking a FatalError. |
||
---|---|---|
.. | ||
Make | ||
Test-PtrList.C |