Skip to content

Conversation

@KevinRansom
Copy link
Contributor

Fixes #15333 Error C2086 while using F# library from CPP/CLI project

Wierdly the C++ cli compiler has issues when importing enums with the value__ given an initial value. C# and F# have no problem when importing it, but C++/CLI does.

The error message is not particularly helpful ... but hey ...
image

The fix is to ensure that the enum code is generated without initializing the value__ field.

At the same time, I ensured that the enum is serializable and sealed.

@KevinRansom KevinRansom requested a review from a team as a code owner June 8, 2023 07:23
@vzarytovskii
Copy link
Member

Oh wow, that...unexpected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Error C2086 while using F# library from CPP/CLI project

4 participants