Skip to content

feature request: to_chars() alternative? #23

Open
@biojppm

Description

@biojppm

Thanks for your work -- it ticks all the boxes! C++11, non terminated strings, and zero allocations - just what I was looking for in my library to address a really nasty issue caused by trying to stick to standard facilities while avoiding the performance-killing allocation cookie monsters from the STL.

But I am also looking for a matching to_chars() version/alternative that writes into a given buffer+size. I do not care about the roundtrip guarantee dictated by the standard.

Are you considering adding such a thing? Or are you aware of any implementation providing this function with similar quality and design choices?

I looked at ryu which does not tick all the boxes and has a large lookup table, but could work. I've also found fp which seems better but is C++17 and maybe a bit too fresh.

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