CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

No code is generated for functions accepting std::string_view

Open josetr opened this issue 4 years ago • 3 comments

OS: Windows

Used headers

string_view

Used settings

Target: MSVC

Driver.ParserOptions.LanguageVersion = LanguageVersion.CPP17

Generated code
// DEBUG: void method(std::string_view data)
// DEBUG: {
// DEBUG: }
// DEBUG:

josetr avatar Oct 07 '20 03:10 josetr

Seeing the same issue on my side.

phil-zxx avatar Nov 26 '20 10:11 phil-zxx

Three years have passed, is there a solution?

xbotter avatar Aug 26 '23 06:08 xbotter

Three years have passed, is there a solution?

Unfortunately, the only solution for now is to change the input C++ code and add either string or const char* overloads. It needs to be implemented.

tritao avatar Aug 26 '23 10:08 tritao