Add a Standard mode check to `<__msvc_print.hpp>` (#4111)

This commit is contained in:
Stephan T. Lavavej 2023-10-25 16:37:48 -07:00 коммит произвёл GitHub
Родитель 0b9ec103d9
Коммит 43fd331d26
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 20 добавлений и 15 удалений

Просмотреть файл

@ -8,6 +8,10 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_concepts // note: <format> includes this header in C++20 mode
#error The contents of <print> are available only with C++23. (Also, you should not include this internal header.)
#endif // ^^^ !defined(__cpp_lib_concepts) ^^^
#include <cstdio>
#include <xfilesystem_abi.h>

Просмотреть файл

@ -9,11 +9,11 @@
#if _STL_COMPILER_PREPROCESSOR
#include <ios>
#if _HAS_CXX23
#ifdef __cpp_lib_print
#include <__msvc_filebuf.hpp>
#include <__msvc_print.hpp>
#include <format>
#endif // _HAS_CXX23
#endif // ^^^ defined(__cpp_lib_print) ^^^
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)

Просмотреть файл

@ -8,14 +8,14 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <cstdint>
#include <type_traits>
#include <xerrc.h>
#if !_HAS_CXX17
#error The contents of <charconv> are only available with C++17. (Also, you should not include this internal header.)
#endif // !_HAS_CXX17
#include <cstdint>
#include <type_traits>
#include <xerrc.h>
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)

Просмотреть файл

@ -37,6 +37,10 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX17
#error The contents of <charconv> are only available with C++17. (Also, you should not include this internal header.)
#endif // !_HAS_CXX17
#include <cstring>
#include <type_traits>
#include <utility>
@ -54,10 +58,6 @@
#include _STL_INTRIN_HEADER // for _umul128() and __shiftright128()
#endif // ^^^ intrinsics available ^^^
#if !_HAS_CXX17
#error The contents of <charconv> are only available with C++17. (Also, you should not include this internal header.)
#endif // !_HAS_CXX17
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)

Просмотреть файл

@ -37,12 +37,12 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <cstdint>
#if !_HAS_CXX17
#error The contents of <charconv> are only available with C++17. (Also, you should not include this internal header.)
#endif // !_HAS_CXX17
#include <cstdint>
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)

Просмотреть файл

@ -7,12 +7,13 @@
#define _XNODE_HANDLE_H
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#include <xmemory>
#if !_HAS_CXX17
#error Node handles are only available with C++17. (Also, you should not include this internal header.)
#endif // _HAS_CXX17
#include <xmemory>
#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)

Просмотреть файл

@ -19,9 +19,9 @@
#include <xfilesystem_abi.h>
#endif // _HAS_CXX17
#if _HAS_CXX23
#ifdef __cpp_lib_concepts
#include <__msvc_print.hpp>
#endif // _HAS_CXX23
#endif // ^^^ defined(__cpp_lib_concepts) ^^^
// <__msvc_bit_utils.hpp> is included by <bit> and <limits>
// <__msvc_iter_core.hpp> is included by <tuple>