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
Previously, I could bind overloaded functions and methods with the fun<> template (preferred method), but now the only thing that works is using static_cast (aka alternative method).
Actual Behavior
A compiler error message similar to:
/home/various_dirs/src/scripting.cpp:1117:35: error: no matching function for call to 'fun'
Minimal Example to Reproduce Behavior
For a function (in a namespace ci) that has two overloads, like this:
Expected Behavior
Previously, I could bind overloaded functions and methods with the
fun<>
template (preferred method), but now the only thing that works is usingstatic_cast
(aka alternative method).Actual Behavior
A compiler error message similar to:
Minimal Example to Reproduce Behavior
For a function (in a namespace
ci
) that has two overloads, like this:Binding in ChaiScript like this:
gives the above-mentioned compiler error, whereas the
static_cast
approach:compiles fine. On other compilers I've used, such as VS 2022, it builds fine (also with C++17 switches).
The text was updated successfully, but these errors were encountered: