+
Skip to content

Explore relationship between grammar::string_view_base and std::string_view #881

@alandefreitas

Description

@alandefreitas

Can someone derive from std::string_view as an alternative to deriving from boost::urls::grammar::string_view_base?

string_view_base stores a core::string_view and is a proxy for its member functions. In principle and semantically, it's guaranteed that string_view_base is OK to use as a base class while std::string_view or core::string_view are not. In practice, string_view_base has no virtual functions and doesn't have a virtual destructor.

The only class that refers to and derives from it is pct_string_view, making it inherit the usual member functions of a string_view.

Metadata

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载