leftibot f894bca836 Fix #612: Allow fun<Signature>(&overloaded) for overload disambiguation
The cheatsheet's "preferred" syntax for binding overloaded free functions,
fun<Ret(Args...)>(&overloaded), only worked on MSVC because the existing
fun<T>(T&&) overload sets T to a function type when called explicitly,
which produces a function rvalue-reference parameter that does not match
a function pointer argument. Standards-conforming compilers (clang, GCC
in some modes) correctly rejected it.

Added two new fun overloads, parameterized on the explicitly-supplied
function-type Signature and using std::type_identity_t to keep that
parameter non-deducible, so they only participate in overload resolution
when Signature is given explicitly. One accepts a free function pointer,
the other a pointer-to-member, enabling both fun<Ret(Args...)>(&free_fn)
and fun<Ret(Args...) cv>(&Class::method) to disambiguate overloads
without resorting to static_cast.
2026-05-02 12:48:28 -06:00
..
dispatchkit Fix #612: Allow fun<Signature>(&overloaded) for overload disambiguation 2026-05-02 12:48:28 -06:00
language 🎨 Committing clang-format changes 2026-04-29 02:22:59 +00:00
utility 🎨 Committing clang-format changes 2026-04-29 02:22:59 +00:00
chaiscript_basic.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_defines.hpp Fix #633: [Bug] Stack-overflow due to infinite recursion in user-defined operator (string interpolation) (#700) 2026-05-02 11:38:01 -06:00
chaiscript_stdlib.hpp Enable warnings as errors (#694) 2026-04-28 20:11:15 -06:00
chaiscript_threading.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript.hpp Fix #571: How to redirect "cout" and "print" to a microsoft Windows 10 window? (#657) 2026-04-11 18:58:09 -06:00