Skip to content

Feature request: fmt::to_string #326

Closed
@netheril96

Description

@netheril96

Basically the same as std::to_string. It should not be hard to implement as it is functionally equivalent to fmt::format("{}", XXX). Reasons that I would like to use fmt::to_string in lieu of std::to_string:

  • std::to_string is not available on C++03.
  • std::to_string is horrendously slow on some implementations. Last time I checked, MSVC internally creates a stringstream for every std::to_string call.

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