Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index



 Hello,

 does somebody know why I'm getting "error 
C2280: 'GrFragmentProcessor::CIter::CIter(const GrFragmentProcessor::CIter 
&)': attempting to reference a deleted function" [1] in a ranged for?

 The relevant code is [2]. "GrFragmentProcessor::PaintCRange" is a ctor call  
for a range type [3], which has "return CIter(fT);" as its begin(). And CIter 
indeed has a deleted copy ctor, but AFAICT it shouldn't be needed, C++17's 
guaranteed copy ellision should take care of it.

 And it builds with GCC/Clang, and it builds even with MSVC here locally. So 
to me it looks like a MSVC bug that's been fixed. How much of a problem would 
it be to bump the minimal required MSVC version (not that I know which one it 
would be exactly)?

[1] 
https://ci.libreoffice.org/job/gerrit_windows/52000/consoleFull#410722581cbd6b0d4-2729-45f4-a019-828721d0af3e
[2] 
https://skia.googlesource.com/skia/+/refs/heads/chrome/m80/src/gpu/ccpr/GrCCDrawPathsOp.cpp#19
[3] 
https://skia.googlesource.com/skia/+/refs/heads/chrome/m80/src/gpu/GrFragmentProcessor.h#582


-- 
 Luboš Luňák
 l.lunak@collabora.com

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.