mono / CppSharp

Tools and libraries to glue C/C++ APIs to high-level languages
MIT License
3.12k stars 514 forks source link

error: static_assert expression is not an integral constant expression? #1171

Closed srxqds closed 5 years ago

srxqds commented 5 years ago
Brief Description

I use CppSharp to analysis UE4 code, but output the error: error: static_assert expression is not an integral constant expression? image

OS: Windows(x86)

The soure code:

image

How can I make (walkaround) the clang not generate with modify unreal engine source code

tritao commented 5 years ago

Try changing your ParserOptions.LanguageVersion to C++14.

srxqds commented 5 years ago

The languageVersion is setting CPP14, I found the workaround: Redefine the STRUCT_OFFSET

thank you!