Skip to content

Commit

Permalink
workaround for nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
fsb4000 committed Jul 15, 2021
1 parent cfac780 commit 1d4eb08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions stl/inc/coroutine
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#pragma message(_WARNING_MESSAGE("STL4033", "Use <experimental/coroutine> for legacy /await support."))
#else // ^^^ /await ^^^ / vvv no /await vvv
#ifndef __cpp_lib_coroutine
#pragma message(_WARNING_MESSAGE( \
"STL4033", "The contents of <coroutine> are available only with C++20 or later or /await:strict."))
// 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
#else // ^^^ <coroutine> is not available / <coroutine> is available vvv
#ifndef _ALLOW_COROUTINE_ABI_MISMATCH
#pragma detect_mismatch("_COROUTINE_ABI", "2")
Expand Down
5 changes: 3 additions & 2 deletions stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_format
#pragma message(_WARNING_MESSAGE( \
"STL4033", "The contents of <format> are available only in c++latest mode with concepts support;"))
// 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
#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
5 changes: 3 additions & 2 deletions stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_ranges
#pragma message(_WARNING_MESSAGE( \
"STL4033", "The contents of <ranges> are available only in c++latest mode with concepts support;"))
// 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
#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 1d4eb08

Please sign in to comment.