[Xapian-tickets] [Xapian] #665: Avoid C library functions not guaranteed to be thread-safe

Xapian nobody at xapian.org
Wed Oct 30 03:00:31 GMT 2019


#665: Avoid C library functions not guaranteed to be thread-safe
-------------------------+-------------------------------
 Reporter:  olly         |             Owner:  olly
     Type:  defect       |            Status:  assigned
 Priority:  normal       |         Milestone:  1.5.0
Component:  Library API  |           Version:  git master
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+-------------------------------

Comment (by olly):

 https://en.cppreference.com/w/cpp/compiler_support seems to suggest that
 no compiler supports `std::from_chars()` for FP types yet, and looking at
 `/usr/include/c++/9/charconv` from GCC 9 seems to confirm that, so that's
 no help.

 We could write our own or find an existing implementation, but I think
 it's quite subtle to get completely right.

--
Ticket URL: <https://trac.xapian.org/ticket/665#comment:19>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list