Skip to content

Visual Studio build issue #1730

@egorpugin

Description

@egorpugin

Using hb2.5.0 I see following error.

When executing: "[behdad.harfbuzz-2.5.0]/src/hb-ot-layout.cc"
D:\temp\29\.sw\src\aa5dc3ae8830\harfbuzz-2.5.0\src\hb-algs.hh(839): error C2440: 'return': cannot convert from 'hb_partial_t<2,Appl,V>' to 'hb_partial_t<2,Appl,V>'
        with
        [
            Appl=const <unnamed-type-hb_add> *,
            V=const OT::RuleSet *
        ]
        and
        [
            Appl=const <unnamed-type-hb_add> *const ,
            V=const OT::RuleSet *
        ]
D:\temp\29\.sw\src\aa5dc3ae8830\harfbuzz-2.5.0\src\hb-algs.hh(839): note: No constructor could take the source type, or constructor overload resolution was ambiguous
D:\temp\29\.sw\src\aa5dc3ae8830\harfbuzz-2.5.0\src\hb-ot-layout-gsubgpos.hh(1374): note: see reference to function template instantiation 'hb_partial_t<2,Appl,V> <unnamed-type-hb_add>::operator ()<const OT::RuleSet*>(_T &&) const' being compiled
        with
        [
            Appl=const <unnamed-type-hb_add> *const ,
            V=const OT::RuleSet *,
            _T=const OT::RuleSet *
        ]

There are tons of these errors from many source files.

Do you test VS2019? I use custom build, so it might be only my issue.
Or it could be VS issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciContinuous Integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions