• A
    Fix C++20 compile warning on implicit capture of this with '=' default capture (#1833) · c1841802
    Ali Javadi 提交于
    Happens when compiled with -std=c++2a, the fix just makes the captures explicit to resolve the issue. Just adding this in addition to = doesn't work in C++11.
    
    src/hb-ot-layout-gpos-table.hh:737:18: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
                  { return (this+_).intersects (glyphs, valueFormat); })
                            ^
    src/hb-ot-layout-gpos-table.hh:736:16: note: add an explicit capture of 'this' to capture '*this' by reference
        | hb_map ([=] (const OffsetTo<PairSet> &_)
                   ^
                    , this
    c1841802
hb-ot-layout-gpos-table.hh 54.7 KB