Skip to content

Commit

Permalink
add a TRANSITION comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fsb4000 committed Jul 16, 2021
1 parent 47e03df commit 5747ab0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions stl/inc/coroutine
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
#pragma message(_WARNING_MESSAGE("STL4033", "Use <experimental/coroutine> for legacy /await support."))
#else // ^^^ /await ^^^ / vvv no /await vvv
#ifndef __cpp_lib_coroutine
// clang-format off
#pragma message( \
_WARNING_MESSAGE("STL4033","The contents of <coroutine> are available only with C++20 or later or /await:strict."))
// clang-format on
#define _MESSAGE "The contents of <coroutine> are available only with C++20 or later or /await:strict."
#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE))
#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317
#else // ^^^ <coroutine> is not available / <coroutine> is available vvv
#ifndef _ALLOW_COROUTINE_ABI_MISMATCH
#pragma detect_mismatch("_COROUTINE_ABI", "2")
Expand Down
7 changes: 3 additions & 4 deletions stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_format
// clang-format off
#pragma message( \
_WARNING_MESSAGE("STL4033","The contents of <format> are available only in c++latest mode with concepts support;"))
// clang-format on
#define _MESSAGE "The contents of <format> are available only in c++latest mode with concepts support;"
#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE))
#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317
#pragma message(_WARNING_MESSAGE("STL4033", "see https://github.com/microsoft/STL/issues/1814 for details."))
#else // ^^^ !defined(__cpp_lib_format) / defined(__cpp_lib_format) vvv

Expand Down
7 changes: 3 additions & 4 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_ranges
// clang-format off
#pragma message( \
_WARNING_MESSAGE("STL4033","The contents of <ranges> are available only in c++latest mode with concepts support;"))
// clang-format on
#define _MESSAGE "The contents of <ranges> are available only in c++latest mode with concepts support;"
#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE))
#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317
#pragma message(_WARNING_MESSAGE("STL4033", "see https://github.com/microsoft/STL/issues/1814 for details."))
#else // ^^^ !defined(__cpp_lib_ranges) / defined(__cpp_lib_ranges) vvv
#include <iosfwd>
Expand Down

0 comments on commit 5747ab0

Please sign in to comment.