• Dominik Charousset's avatar
    Simplify pattern matching, remove `others` · a441111d
    Dominik Charousset authored
    Add new unexpected message handler to actors that centralizes how actors deal
    with messages that are not handled in their current behavior. This obsoletes
    the previous approach of cluttering the code base with `others >>` handlers.
    Relates #444. Also relates #446, since the new interface uses
    `type_erased_tuple` and is a first step towards removing `message` from the
    interface of actors entirely.
    
    Removing `others` as well as the "advanced pattern matching syntax" from CAF
    opens up design space, allows for several optimizations, and improves
    compatibility to MSVC.
    a441111d
basp.cpp 29.9 KB