Skip to content

Currently not possible to compile range-v3 with -fno-rtti flag set #1764

@yury-fedorov

Description

@yury-fedorov

Adding -fno-rtti flag leads to fail the build with the following errors:

range-v3-src/include/range/v3/view/any_view.hpp:129:24: error: use of typeid requires -frtti
, info_(&typeid(rtti_tag))

range-v3-src/include/range/v3/view/any_view.hpp:135:58: error: use of typeid requires -frtti
RANGES_ASSERT(obj_ && info_ && *info_ == typeid(rtti_tag));
^
range-v3-src/include/range/v3/detail/config.hpp:63:23: note: expanded from macro 'RANGES_ASSERT'
#define RANGES_ASSERT assert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions