Skip to content

C++ Streams support for hstring and IStringable #1195

@jaigak

Description

@jaigak

Today it doesn't seem possible to output an hstring directly to a C++ stream (eg: wcout).

cpp
hstring text;
// Doesn't work.
std::wcout << text;

// Works.
std::wcout << text.c_str();
std::wcout << static_cast<std::wstring_view>(text);

Please overload operator<< for hstring, as well as types implementing IStringable.

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