WIP: Use charconv functions
This commit is contained in:
parent
96fb32e12f
commit
8e5c1eab1f
|
@ -197,6 +197,16 @@ if (NOT ENABLE_THREAD_LOCAL)
|
|||
PROPERTY COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_NO_THREAD_LOCAL)
|
||||
endif ()
|
||||
|
||||
# configure use of charconv
|
||||
option(ENABLE_CHARCONV "enables use charconv for integer conversions" ON)
|
||||
option(ENABLE_CHARCONV_FP "enables use charconv for floating point conversions" ON)
|
||||
if (ENABLE_CHARCONV)
|
||||
list(APPEND META_PUBLIC_COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_ENABLE_CHARCONV)
|
||||
endif ()
|
||||
if (ENABLE_CHARCONV_FP)
|
||||
list(APPEND META_PUBLIC_COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_ENABLE_CHARCONV_FP)
|
||||
endif ()
|
||||
|
||||
# include modules to apply configuration
|
||||
include(BasicConfig)
|
||||
include(WindowsResources)
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
#include <ranges>
|
||||
#endif
|
||||
|
||||
#if defined(CPP_UTILITIES_ENABLE_CHARCONV) || defined(CPP_UTILITIES_ENABLE_CHARCONV_FP)
|
||||
#include <charconv>
|
||||
#endif
|
||||
|
||||
namespace CppUtilities {
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue