#Turning #include's constexpr into inline constexpr from outside the #include?

1 messages · Page 1 of 1 (latest)

night frostBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

solemn trellis
#

can you post the actual error message. ERror codes are compiler specific so its unclear what error you're specifically facing

#

also extern constexpr is definitely wrong

#

You can't have an external constexpr definition

#

thats not how constexpr works

#

You can have inline constexpr which will match up multiple duplicate definitions across translation units, which is probably want you want if you have constexpr constants in headers

#

But also I don't know what bug you're actually facing

wheat patrol
#

Turning #include's constexpr into inline constexpr from outside the #include?

solemn trellis
#

wait are you using modules?

#

well the warning is tell you you can't do that and use this header normally

#

Or just include the header like a normal person

night frostBOT
#

@wheat patrol

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.