• Jason Rhinelander's avatar
    Update OVERLOAD macros to support ref/ptr return type overloads · 7dfb932e
    Jason Rhinelander authored
    This adds a static local variable (in dead code unless actually needed)
    in the overload code that is used for storage if the overload is for
    some convert-by-value type (such as numeric values or std::string).
    
    This has limitations (as written up in the advanced doc), but is better
    than simply not being able to overload reference or pointer methods.
    7dfb932e
test_virtual_functions.cpp 13 KB