mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 11:30:36 +00:00
Clang dislikes forward-declared functions returning auto, so declare the type up front. Functions returning auto are a readability problem anyway. To solve a circular dependency problem (get_local_injector() -> error_injection<> -> get_local_injector()), which is further compounded by problems in using template specializations before they are defined (which is forbidden), the storage for get_local_injector() was moved to error_injection<>, and get_local_injector() is just an accessor. After this, error_injection<> does not depend on get_local_injector().
920 B
920 B