Macros
vtkCharConvCompatibility.h File Reference

Compatibility shim for C++ charconv API. More...

#include <charconv>
Include dependency graph for vtkCharConvCompatibility.h:

Go to the source code of this file.

Macros

#define VTK_HAS_STD_CHARS_FORMAT
 
#define VTK_HAS_STD_FROM_CHARS_RESULT
 
#define VTK_HAS_STD_TO_CHARS_RESULT
 

Detailed Description

Compatibility shim for C++ charconv API.

Some older compilers, such as Intel LLVM ≤2021.12, GCC ≤9, Clang ≤10, have incomplete or missing definitions for std::chars_format, std::from_chars_result. and std::to_chars_result. This header provides fallback definitions when needed, or includes the standard charconv otherwise.

Definition in file vtkCharConvCompatibility.h.

Macro Definition Documentation

◆ VTK_HAS_STD_CHARS_FORMAT

#define VTK_HAS_STD_CHARS_FORMAT

Definition at line 17 of file vtkCharConvCompatibility.h.

◆ VTK_HAS_STD_FROM_CHARS_RESULT

#define VTK_HAS_STD_FROM_CHARS_RESULT

Definition at line 18 of file vtkCharConvCompatibility.h.

◆ VTK_HAS_STD_TO_CHARS_RESULT

#define VTK_HAS_STD_TO_CHARS_RESULT

Definition at line 19 of file vtkCharConvCompatibility.h.