[RESOLVED] Re: About replacing some "C-Array" into std::array

Julien Nabet serval2412 at yahoo.fr
Fri Nov 22 16:28:17 UTC 2019

On 22/11/2019 16:44, Kaganski Mike wrote:
> On 22.11.2019 18:31, julien2412 wrote:
>> Taking a look at cppcheck report, I noticed this kind of reports:
>> vcl/source/treelist/transfer.cxx
>> 132	useStlAlgorithm	398	style	Consider using std::fill algorithm instead of
>> a raw loop
>> To use std::fill, we'd need to convert the C array into std::array.
> I don't see why is the conversion required specifically for using STL. A
> pointer inside the array is a perfect iterator, that STL can use. (No
> objections against conversion where it has benefits :-))
Indeed! I thought STL needed iterators only but reading this 
it's not the case.

Thank you for your feedback Mike!


More information about the LibreOffice mailing list