Date: Tue, 12 Dec 2023 17:04:59 -0300
On Tuesday, 12 December 2023 17:00:59 -03 Lénárd Szolnoki wrote:
> > constexpr are implicitly inline, so these two don't actually work
> > independently. At a minimum you must ensure that the former is
> > visible before
> > the latter. Or write extern constexpr.
>
> constexpr is not implicitly inline for namespace scope non-template
> variables.
Are you sure? This is an area that changed in C++14 or 17. I might be mis-
remembering the details, but something did change to make something implicitly
inline.
> > constexpr are implicitly inline, so these two don't actually work
> > independently. At a minimum you must ensure that the former is
> > visible before
> > the latter. Or write extern constexpr.
>
> constexpr is not implicitly inline for namespace scope non-template
> variables.
Are you sure? This is an area that changed in C++14 or 17. I might be mis-
remembering the details, but something did change to make something implicitly
inline.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering
Received on 2023-12-12 20:05:04