Skip to content

<type_traits>: std::byte is not _Is_trivially_swappable #2039

@fsb4000

Description

@fsb4000

Describe the bug
std::byte is not _Is_trivially_swappable, so code generation is worse than for unsigned char

This problem is best seen at godbolt: https://godbolt.org/z/qxP8fYd3v

Expected behavior
std::byte should have same speed as unsigned char

STL version
Microsoft Visual Studio Community 2022 Preview 1.1 Version 17.0.0

Additional context
DevCom-1467265 and Microsoft-internal VSO-1352013 / AB#1352013

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions