From 8aaf029ab6046eb8cbe600a548d176c1418bd99a Mon Sep 17 00:00:00 2001 From: B Stack Date: Fri, 2 Oct 2020 14:42:30 -0400 Subject: add upstream 11.2 --- zen/legacy_compiler.h | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'zen/legacy_compiler.h') diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h index 82c404d8..ad5442fe 100644 --- a/zen/legacy_compiler.h +++ b/zen/legacy_compiler.h @@ -7,26 +7,37 @@ #ifndef LEGACY_COMPILER_H_839567308565656789 #define LEGACY_COMPILER_H_839567308565656789 +#include +/* C++ standard conformance: + https://en.cppreference.com/w/cpp/feature_test + https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros + https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations + + MSVC https://docs.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance + + GCC https://gcc.gnu.org/projects/cxx-status.html + libstdc++ https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html + + Clang https://clang.llvm.org/cxx_status.html#cxx20 + libc++ https://libcxx.llvm.org/cxx2a_status.html */ -//https://en.cppreference.com/w/cpp/feature_test -//https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros -//https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations -//https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html namespace std { + + } //--------------------------------------------------------------------------------- //constinit, consteval - #define constinit2 constinit //GCC has it + #define constinit2 constinit //GCC, clang have it #define consteval2 consteval // namespace zen { -double from_chars(const char* first, const char* last); -const char* to_chars(char* first, char* last, double num); +double fromChars(const char* first, const char* last); +const char* toChars(char* first, char* last, double num); } #endif //LEGACY_COMPILER_H_839567308565656789 -- cgit