3 Commits

Author SHA1 Message Date
Christian Mazakas 008ff1c071 add operator new overloads to test Callables
When Callables are sufficiently small, they're emplaced into a small
buffer directly by placement new. If one, however, uses an unqualified
call to placement new, the class-based overloads are picked up and
compilation fails.

    libs/compat/test/move_only_function_test.cpp:107:11: note: candidate
    function not viable: requires 1 argument, but 2 were provided
        107 |     void* operator new(std::size_t) { throw 1234; }
2026-01-23 19:34:36 -08:00
Christian Mazakas fbad5e0834 add test for in-place mutation of SBO-stored callables 2026-01-20 07:30:25 -08:00
Christian Mazakas 1a60e0357c add move_only_function 2025-06-11 19:57:30 -07:00