public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/100146] New: __cpp_lib_to_chars not defined
@ 2021-04-19  9:42 gcc-bugs at marehr dot dialup.fu-berlin.de
  2021-04-19  9:58 ` [Bug libstdc++/100146] " jakub at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugs at marehr dot dialup.fu-berlin.de @ 2021-04-19  9:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100146

            Bug ID: 100146
           Summary: __cpp_lib_to_chars not defined
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
  Target Milestone: ---

Hi gcc-team,

it seems that you implemented the float variants of <charconv> in gcc-11.

Is there a reason that you did not define `__cpp_lib_to_chars`?

The following code:

```cpp
#include <version>

#ifndef __cpp_lib_to_chars
#warning("__cpp_lib_to_chars NOT defined")
#endif

#include <charconv>

#ifndef __cpp_lib_to_chars
#warning("__cpp_lib_to_chars NOT defined")
#endif

#include <string_view>

int main()
{
    float value;
    std::string_view view{"5.55"};

    std::from_chars(view.begin(), view.end(), value);
}
```

throws warnings.

https://godbolt.org/z/WK7qs84Th

Thank you!

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-04-20 12:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  9:42 [Bug libstdc++/100146] New: __cpp_lib_to_chars not defined gcc-bugs at marehr dot dialup.fu-berlin.de
2021-04-19  9:58 ` [Bug libstdc++/100146] " jakub at gcc dot gnu.org
2021-04-19 10:24 ` jakub at gcc dot gnu.org
2021-04-19 10:36 ` redi at gcc dot gnu.org
2021-04-19 11:01 ` jakub at gcc dot gnu.org
2021-04-19 11:15 ` redi at gcc dot gnu.org
2021-04-19 11:19 ` redi at gcc dot gnu.org
2021-04-20 11:51 ` cvs-commit at gcc dot gnu.org
2021-04-20 11:54 ` cvs-commit at gcc dot gnu.org
2021-04-20 11:55 ` redi at gcc dot gnu.org
2021-04-20 12:01 ` gcc-bugs at marehr dot dialup.fu-berlin.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).