Skip to content

Commit

Permalink
remove MSVC 2017 paths (#3553)
Browse files Browse the repository at this point in the history
Co-authored-by: Bernhard Manfred Gruber <[email protected]>
  • Loading branch information
fbusato and bernhardmgruber authored Feb 5, 2025
1 parent 32d05c7 commit 5565801
Show file tree
Hide file tree
Showing 138 changed files with 209 additions and 635 deletions.
1 change: 0 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"CCCL_ENABLE_TESTING": false,
"CCCL_ENABLE_EXAMPLES": false,
"CCCL_ENABLE_C": false,
"CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING": true,
"libcudacxx_ENABLE_INSTALL_RULES": true,
"CUB_ENABLE_INSTALL_RULES": true,
"Thrust_ENABLE_INSTALL_RULES": true,
Expand Down
5 changes: 0 additions & 5 deletions cmake/CCCLBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
option(CCCL_ENABLE_EXCEPTIONS "Enable exceptions within CCCL libraries." ON)
option(CCCL_ENABLE_RTTI "Enable RTTI within CCCL libraries." ON)
option(CCCL_ENABLE_WERROR "Treat warnings as errors for CCCL targets." ON)
option(CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING "Suppress Visual Studio 2017 deprecation warnings" OFF)

function(cccl_build_compiler_interface interface_target cuda_compile_options cxx_compile_options compile_defs)
add_library(${interface_target} INTERFACE)
Expand Down Expand Up @@ -68,10 +67,6 @@ function(cccl_build_compiler_targets)
list(APPEND cxx_compile_definitions "CCCL_DISABLE_RTTI")
endif()

if (CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING)
list(APPEND cxx_compile_definitions "CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING")
endif()

if ("MSVC" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
list(APPEND cuda_compile_options "--use-local-env")
list(APPEND cxx_compile_options "/bigobj")
Expand Down
16 changes: 1 addition & 15 deletions cub/cub/detail/nvtx3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,21 +562,7 @@
/* Temporary helper #defines, removed with #undef at end of header */

#if !defined(NVTX3_USE_CHECKED_OVERLOADS_FOR_GET)
# if defined(_MSC_VER) && _MSC_VER < 1914
/* Microsoft's compiler prior to VS2017 Update 7 (15.7) uses an older parser
* that does not work with domain::get's specialization for domain::global,
* and would require extra conditions to make SFINAE work for the overloaded
* get() functions. This macro disables use of overloaded get() in order to
* work with VS2015 and versions of VS2017 below 15.7, without penalizing
* users of newer compilers. Building with this flag set to 0 means errors
* when defining tag structs (see documentation for domain, named_category,
* and registered_string) will have more complex compiler error messages
* instead of the clear static_assert messages from the get() overloads.
*/
# define NVTX3_USE_CHECKED_OVERLOADS_FOR_GET 0
# else
# define NVTX3_USE_CHECKED_OVERLOADS_FOR_GET 1
# endif
# define NVTX3_USE_CHECKED_OVERLOADS_FOR_GET 1
# define NVTX3_USE_CHECKED_OVERLOADS_FOR_GET_DEFINED_HERE
#endif

Expand Down
3 changes: 0 additions & 3 deletions cub/cub/util_cpp_dialect.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ CUB_COMPILER_DEPRECATION(Clang 7.0);
# elif _CCCL_COMPILER(MSVC, <, 19, 10)
// <2017. Hard upgrade message:
CUB_COMPILER_DEPRECATION(MSVC 2019(19.20 / 16.0 / 14.20));
# elif _CCCL_COMPILER(MSVC2017)
// >=2017, <2019. Soft deprecation message:
CUB_COMPILER_DEPRECATION_SOFT(MSVC 2019(19.20 / 16.0 / 14.20), MSVC 2017);
# endif
# endif // CCCL_IGNORE_DEPRECATED_COMPILER

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <cuda/experimental/__memory_resource/any_resource.cuh>
#include <cuda/experimental/__memory_resource/properties.cuh>

#if _CCCL_STD_VER >= 2014 && !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if _CCCL_STD_VER >= 2014 && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

//! @file
//! The \c uninitialized_async_buffer class provides a typed buffer allocated in stream-order from a given memory
Expand Down Expand Up @@ -318,6 +318,6 @@ using uninitialized_async_device_buffer = uninitialized_async_buffer<_Tp, device

} // namespace cuda::experimental

#endif // _CCCL_STD_VER >= 2014 && !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // _CCCL_STD_VER >= 2014 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //__CUDAX__CONTAINERS_UNINITIALIZED_ASYNC_BUFFER_H
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <cuda/experimental/__memory_resource/any_resource.cuh>
#include <cuda/experimental/__memory_resource/properties.cuh>

#if _CCCL_STD_VER >= 2014 && !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if _CCCL_STD_VER >= 2014 && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

//! @file
//! The \c uninitialized_buffer class provides a typed buffer allocated from a given memory resource.
Expand Down Expand Up @@ -283,6 +283,6 @@ using uninitialized_device_buffer = uninitialized_buffer<_Tp, device_accessible>

} // namespace cuda::experimental

#endif // _CCCL_STD_VER >= 2014 && !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // _CCCL_STD_VER >= 2014 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //__CUDAX__CONTAINERS_UNINITIALIZED_BUFFER_H
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
# error "To use the experimental memory resource, define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE"
#endif

// cuda::mr is unavable on MSVC 2017
#if _CCCL_COMPILER(MSVC2017)
# error "The any_resource header is not supported on MSVC 2017"
#endif

#if !defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
# define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
# error "To use the experimental memory resource, define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE"
#endif

// cuda::mr is unavable on MSVC 2017
#if _CCCL_COMPILER(MSVC2017)
# error "The any_resource header is not supported on MSVC 2017"
#endif

#if !defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
# define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
# error "To use the experimental memory resource, define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE"
#endif

// cuda::mr is unavable on MSVC 2017
#if _CCCL_COMPILER(MSVC2017)
# error "The any_resource header is not supported on MSVC 2017"
#endif // _CCCL_COMPILER(MSVC2017)

#if !defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
# define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
# error "To use the experimental memory resource, define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE"
#endif

// cuda::mr is unavable on MSVC 2017
#if _CCCL_COMPILER(MSVC2017)
# error "The shared_resource header is not supported on MSVC 2017"
#endif

#if !defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
# define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif
Expand Down
2 changes: 0 additions & 2 deletions docs/cccl_development/macro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ Compiler Macros
+------------------------------+---------------------------------------------+
| ``_CCCL_COMPILER(MSVC)`` | Microsoft Visual Studio |
+------------------------------+---------------------------------------------+
| ``_CCCL_COMPILER(MSVC2017)`` | Microsoft Visual Studio 2017 (deprecated) |
+------------------------------+---------------------------------------------+
| ``_CCCL_COMPILER(MSVC2019)`` | Microsoft Visual Studio 2019 |
+------------------------------+---------------------------------------------+
| ``_CCCL_COMPILER(MSVC2022)`` | Microsoft Visual Studio 2022 |
Expand Down
6 changes: 3 additions & 3 deletions docs/libcudacxx/setup/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ NVCC Host Compilers
When used with NVCC, the NVIDIA C++ Standard Library supports the
following host compilers:

- MSVC 2017 and 2019.
- GCC 5, 6, 7, 8, 9, and 10.
- Clang 7, 8, 9, and 10.
- MSVC 2019 and 2022.
- GCC 6, until 13.
- Clang 14 until 18.
- ICPC latest.
- NVHPC 20.9 and 20.11.

Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/__memory_resource/get_property.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# pragma system_header
#endif // no system header

#if !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

# include <cuda/std/__concepts/same_as.h>
# include <cuda/std/__type_traits/remove_const_ref.h>
Expand Down Expand Up @@ -153,6 +153,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA

# endif // _CCCL_STD_VER >= 2014

#endif // !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_CUDA__MEMORY_RESOURCE_GET_PROPERTY_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/__memory_resource/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <cuda/std/__type_traits/type_set.h>
#include <cuda/std/cstddef>

#if !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

# if _CCCL_STD_VER >= 2014

Expand Down Expand Up @@ -68,6 +68,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR

# endif // _CCCL_STD_VER >= 2014

#endif // !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_CUDA__MEMORY_RESOURCE_PROPERTIES_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/__memory_resource/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# pragma system_header
#endif // no system header

#if !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

# include <cuda/__memory_resource/get_property.h>
# include <cuda/std/__concepts/concept_macros.h>
Expand Down Expand Up @@ -124,6 +124,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR

# endif // _CCCL_STD_VER >= 2014

#endif // !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_CUDA__MEMORY_RESOURCE_RESOURCE_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/__memory_resource/resource_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# pragma system_header
#endif // no system header

#if !_CCCL_COMPILER(MSVC2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
#if defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)

# include <cuda/__memory_resource/get_property.h>
# include <cuda/__memory_resource/properties.h>
Expand Down Expand Up @@ -648,6 +648,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR

# endif // _CCCL_STD_VER >= 2014

#endif // !_CCCL_COMPILER(MSVC2017) && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_CUDA__MEMORY_RESOURCE_RESOURCE_REF_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__algorithm/iterator_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _LIBCUDACXX_BEGIN_NAMESPACE_STD
template <class _AlgPolicy>
struct _IterOps;

#if _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#if _CCCL_STD_VER >= 2017
struct _RangeAlgPolicy
{};

Expand All @@ -69,7 +69,7 @@ struct _IterOps<_RangeAlgPolicy>
static constexpr auto __advance_to = _CUDA_VRANGES::advance;
};

#endif // _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#endif // _CCCL_STD_VER >= 2017

struct _ClassicAlgPolicy
{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <cuda/std/__iterator/iterator_traits.h>
#include <cuda/std/__type_traits/remove_cvref.h>

#if _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#if _CCCL_STD_VER >= 2017

_LIBCUDACXX_BEGIN_NAMESPACE_RANGES

Expand Down Expand Up @@ -60,6 +60,6 @@ using __iterator_concept = decltype(__get_iterator_concept<_Iter>());

_LIBCUDACXX_END_NAMESPACE_RANGES

#endif // _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#endif // _CCCL_STD_VER >= 2017

#endif // _LIBCUDACXX___ALGORITHM_RANGES_ITERATOR_CONCEPT_H
11 changes: 6 additions & 5 deletions libcudacxx/include/cuda/std/__cccl/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@
#elif defined(__GNUC__)
# define _CCCL_COMPILER_GCC _CCCL_COMPILER_MAKE_VERSION(__GNUC__, __GNUC_MINOR__)
#elif defined(_MSC_VER)
# define _CCCL_COMPILER_MSVC _CCCL_COMPILER_MAKE_VERSION(_MSC_VER / 100, _MSC_VER % 100)
# define _CCCL_COMPILER_MSVC2017 (_CCCL_COMPILER_MSVC < _CCCL_COMPILER_MAKE_VERSION(19, 20))
# if _CCCL_COMPILER_MSVC2017 && !defined(CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING)
# pragma message( \
"Support for the Visual Studio 2017 (MSC_VER < 1920) is deprecated and will eventually be removed. Define CCCL_SUPPRESS_MSVC2017_DEPRECATION_WARNING to suppress this warning")
# define _CCCL_COMPILER_MSVC _CCCL_COMPILER_MAKE_VERSION(_MSC_VER / 100, _MSC_VER % 100)
# if (_CCCL_COMPILER_MSVC < _CCCL_COMPILER_MAKE_VERSION(19, 20))
# ifndef CCCL_IGNORE_DEPRECATED_COMPILER
# error \
"Visual Studio 2017 (MSC_VER < 1920) and older are not supported by CCCL. Define CCCL_IGNORE_DEPRECATED_COMPILER to suppress this error."
# endif
# endif
# define _CCCL_COMPILER_MSVC2019 \
(_CCCL_COMPILER_MSVC >= _CCCL_COMPILER_MAKE_VERSION(19, 20) \
Expand Down
8 changes: 4 additions & 4 deletions libcudacxx/include/cuda/std/__cccl/diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@
# define _CCCL_NV_DIAG_SUPPRESS(_WARNING) _CCCL_PRAGMA(diagnostic push) _CCCL_PRAGMA(diag_suppress _WARNING)
# define _CCCL_NV_DIAG_DEFAULT(_WARNING) _CCCL_PRAGMA(diagnostic pop)
# else // ^^^ __NVCC_DIAG_PRAGMA_SUPPORT__ ^^^ / vvv !__NVCC_DIAG_PRAGMA_SUPPORT__ vvv
# if _CCCL_COMPILER(MSVC2017) || _CCCL_COMPILER(GCC) // these compilers have issues with restoring the warning
# if _CCCL_COMPILER(GCC) // these compilers have issues with restoring the warning
# define _CCCL_NV_DIAG_SUPPRESS(_WARNING) _CCCL_PRAGMA(diag_suppress _WARNING)
# define _CCCL_NV_DIAG_DEFAULT(_WARNING)
# else // ^^^ _CCCL_COMPILER(MSVC2017) ^^^ / vvv !_CCCL_COMPILER(MSVC2017) vvv
# else // ^^^ _CCCL_COMPILER(GCC) ^^^ / vvv !_CCCL_COMPILER(GCC) vvv
# define _CCCL_NV_DIAG_SUPPRESS(_WARNING) _CCCL_PRAGMA(diag_suppress _WARNING)
# define _CCCL_NV_DIAG_DEFAULT(_WARNING) _CCCL_PRAGMA(diag_default _WARNING)
# endif // !_CCCL_COMPILER(MSVC2017)
# endif // !_CCCL_COMPILER(GCC)
# endif // !__NVCC_DIAG_PRAGMA_SUPPORT__
#else // ^^^ _CCCL_HAS_CUDA_COMPILER ^^^ / vvv !_CCCL_HAS_CUDA_COMPILER vvv
# define _CCCL_NV_DIAG_SUPPRESS(_WARNING)
Expand Down Expand Up @@ -147,7 +147,7 @@
#endif // !_CCCL_COMPILER(MSVC)

#ifndef _CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO
# if _CCCL_COMPILER(MSVC2017) || _CCCL_COMPILER(NVRTC)
# if _CCCL_COMPILER(NVRTC)
# define _CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO
# endif
#endif // _CCCL_HAS_NO_PRAGMA_PUSH_POP_MACRO
Expand Down
9 changes: 1 addition & 8 deletions libcudacxx/include/cuda/std/__cccl/unreachable.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@
#elif defined(__CUDA_ARCH__)
# define _CCCL_UNREACHABLE() __builtin_unreachable()
#else // ^^^ __CUDA_ARCH__ ^^^ / vvv !__CUDA_ARCH__ vvv
# if _CCCL_COMPILER(MSVC2017)
template <class = void>
_LIBCUDACXX_HIDE_FROM_ABI __declspec(noreturn) void __cccl_unreachable_fallback()
{
__assume(0);
}
# define _CCCL_UNREACHABLE() __cccl_unreachable_fallback()
# elif _CCCL_COMPILER(MSVC)
# if _CCCL_COMPILER(MSVC)
# define _CCCL_UNREACHABLE() __assume(0)
# else // ^^^ _CCCL_COMPILER(MSVC) ^^^ / vvv !_CCCL_COMPILER(MSVC) vvv
# define _CCCL_UNREACHABLE() __builtin_unreachable()
Expand Down
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__fwd/get.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _LIBCUDACXX_HIDE_FROM_ABI constexpr const _Tp&& get(const complex<_Tp>&&) noexce

_LIBCUDACXX_END_NAMESPACE_STD

#if _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#if _CCCL_STD_VER >= 2017

_LIBCUDACXX_BEGIN_NAMESPACE_RANGES

Expand Down Expand Up @@ -122,6 +122,6 @@ using _CUDA_VRANGES::get;

_LIBCUDACXX_END_NAMESPACE_STD

#endif // _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#endif // _CCCL_STD_VER >= 2017

#endif // _LIBCUDACXX___FWD_GET_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__fwd/subrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <cuda/std/__iterator/concepts.h>

#if _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#if _CCCL_STD_VER >= 2017

_LIBCUDACXX_BEGIN_NAMESPACE_RANGES

Expand Down Expand Up @@ -52,6 +52,6 @@ class _CCCL_TYPE_VISIBILITY_DEFAULT subrange;
_LIBCUDACXX_END_NAMESPACE_RANGES_ABI
_LIBCUDACXX_END_NAMESPACE_RANGES

#endif // _CCCL_STD_VER >= 2017 && !_CCCL_COMPILER(MSVC2017)
#endif // _CCCL_STD_VER >= 2017

#endif // _LIBCUDACXX___FWD_SUBRANGE_H
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__iterator/advance.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _LIBCUDACXX_HIDE_FROM_ABI _CCCL_CONSTEXPR_CXX14 void advance(_InputIter& __i, _D

_LIBCUDACXX_END_NAMESPACE_STD

#if _CCCL_STD_VER > 2014 && !defined(_LICBUDACXX_COMPILER_MSVC_2017)
#if _CCCL_STD_VER > 2014

// [range.iter.op.advance]

Expand Down Expand Up @@ -238,6 +238,6 @@ _CCCL_GLOBAL_CONSTANT auto advance = __advance::__fn{};

_LIBCUDACXX_END_NAMESPACE_RANGES

#endif // _CCCL_STD_VER > 2014 && !_LICBUDACXX_COMPILER_MSVC_2017
#endif // _CCCL_STD_VER > 2014

#endif // _LIBCUDACXX___ITERATOR_ADVANCE_H
Loading

0 comments on commit 5565801

Please sign in to comment.