Skip to content

Conversation

@Stef-2
Copy link

@Stef-2 Stef-2 commented Jul 12, 2025

From my testing, this works with clang, gcc 15 and gcc 16. Hopefully I did not skip exporting any symbols from the header file.


struct Nullopt {};
VKFW_CONSTEXPR Nullopt nullopt = {};
VKFW_CONSTEXPR VKFW_INLINE Nullopt nullopt = {};
Copy link
Author

Choose a reason for hiding this comment

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

constexpr implies static here and thus gives this symbol internal linkage, making it non-exportable, marking it as inline fixes this.

Copy link
Owner

@Cvelth Cvelth Jul 13, 2025

Choose a reason for hiding this comment

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

Can I please have this as a separate commit?

Copy link
Author

Choose a reason for hiding this comment

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

Sure thing.

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