Skip to content

Should Http.Proto support -fno-rtti? #89

Open

Description

The service registry has a dependency on type_index which requires RTTI, so the code currently polyfills this via: https://github.com/cppalliance/http_proto/blob/develop/include/boost/http_proto/detail/type_index.hpp

This incurs extra maintenance burden not to mention the introduction of a downcast helper, which was created to facilitate the use-case where a derived service object uses virtual inheritance.

It'd be good to compare our implementation against the one in Asio, which seems to only return void* in the case of -fno-rtti.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions