Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Jan 27, 2025

Our minimum C++ version allows inline constexpr, just use it.

Our minimum C++ version allows `inline constexpr`, just use it.

Signed-off-by: Larry Gritz <[email protected]>
#endif

// DEPRECATED(3.1): use C++17 inline constexpr
#define OIIO_INLINE_CONSTEXPR inline constexpr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to keep this macro ? From what I can see you've updated all the OIIO_INLINE_CONSTEXPR in the code base, so maybe we can just get rid of it, this way we have one less macro :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in a public header file, we can't break downstream source compatibility, even if it's something we don't use internally any longer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you're right, good point !

@lgritz lgritz merged commit 55a6634 into AcademySoftwareFoundation:main Feb 1, 2025
28 checks passed
@lgritz lgritz deleted the lg-inlineconstexpr branch February 1, 2025 19:34
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 2025
…oundation#4607)

Our minimum C++ version allows `inline constexpr`, just use it.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
zachlewis pushed a commit to zachlewis/OpenImageIO that referenced this pull request Sep 1, 2025
…oundation#4607)

Our minimum C++ version allows `inline constexpr`, just use it.

Signed-off-by: Larry Gritz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants