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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :-))

-- 
Best regards,
Mike Kaganski
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux