You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation failure when trying to compile the sample below (MSVC 2015 Windows 10 64-bit). This is a small replication of a C++ library that I am trying to wrap but cannot modify.
TheString& is a non-const l-value reference and a type that gets passed to TheMethod() is an r-value. That is not how C++ works. Instead use const TheString& and it will compile fine.
Issue description
Compilation failure when trying to compile the sample below (MSVC 2015 Windows 10 64-bit). This is a small replication of a C++ library that I am trying to wrap but cannot modify.
Reproducible example code
Results in:
C2664 'void (TheString &)': cannot convert argument 1 from 'char *' to 'TheString &'
Possibly related to #1116
The text was updated successfully, but these errors were encountered: