Skip to content

Use of undeclared 'connect' with clang-11 (single include) #1315

@jonpas

Description

@jonpas

Using entt/single_include v3.16.0 with Clang 11 results in the following error when simply including the single include header file:

/builds/acre/acre-core/lib/entt/single_include/entt/entt.hpp:25855:41: error: use of undeclared 'connect'
            sink{construction}.template connect<&underlying_type::element_type::on_construct>();
                                        ^

/builds/acre/acre-core/lib/entt/single_include/entt/entt.hpp:25859:35: error: use of undeclared 'connect'
            sink{update}.template connect<&underlying_type::element_type::on_update>();
                                  ^

/builds/acre/acre-core/lib/entt/single_include/entt/entt.hpp:25863:40: error: use of undeclared 'connect'
            sink{destruction}.template connect<&underlying_type::element_type::on_destroy>();
                                       ^

Those are all in basic_sigh_mixin constructor.

Clang 12 and newer work fine.

EnTT v3.15.0 has the same issue.
EnTT v3.14.0 works fine with Clang 11 and newer.

Metadata

Metadata

Assignees

Labels

triagepending issue, PR or whatever

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions