Skip to content

[BUG] C++17 STL <charconv> implementation missing floating point functions #1574

@Didgy74

Description

@Didgy74

Description

In NDK r23, trying to use any of the float-based functions from will result in a compiler error. From looking in the file Sdk\ndk\23.0.7599858\sources\cxx-stl\llvm-libc++\include\charconv, it's clear that this file only contains implementation for the integral types,

To clarify more, from the https://en.cppreference.com/w/cpp/utility/to_chars page, the current implementation only contains functions 1 and 2. From the https://en.cppreference.com/w/cpp/utility/from_chars page, the current implementation only contains function 1.

Test case:

Include and try to use any of the float based function:

#include <charconv>

char str[10];
std::from_chars_result result = std::to_chars(&str[0], &str[10], 10.f); // Compiler error, no matching candidate found.

Environment Details

  • NDK Version: 23.0.7599858

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions