Skip to content

string_ref and string_view interoperability? #2

@OlafvdSpek

Description

@OlafvdSpek

It'd be nice if string_ref and string_view could interoperate..

void f0(boost::string_ref);
void f1(boost::string_view);

int main(int argc, char* argv[])
{
	boost::string_ref sr;
	boost::string_view sv;
	f0(sr);
	f0(sv); // error
	f1(sr); // error
	f1(sv);

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