Skip to content

eastl::string is not correct if it includes 23 characters #566

@chengkechi-google

Description

@chengkechi-google

I am using eastl::string as a file name, but I found out there is an issue if the string includes 23 characters. I am using VS 2022.

This is my test code:
eastl::string name = "12345678901234567890123";

The result is :
name = "12345678901234567890123..."

I think it is because of small string optimization, but I am unsure. Is this the expected result?
Thanks!

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