ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.05k stars 372 forks source link

`etl::forward_link` does not have constexpr ctor anymore #816

Open diggit opened 5 months ago

diggit commented 5 months ago

Hi, since commit c3c12da8616c6bbbe67583c2bf06cee7f2d54f95 , which added user defined ctors to etl::forward_link not marked with constexpr, it's not possible to construct it in compile time. Thus any child class also can't have constexpr ctors.

I know it's not easy to handle constexpr stuff in multi standard library, but here it should be only about adding appropriate ETL_CONSTEXPR macro prefix or am I wrong?

jwellbelove commented 5 months ago

I'll check whether constexpr constructors are possible.