Skip to content

Commit

Permalink
Warn if <Kokkos_Vector.hpp> is included
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Jul 1, 2023
1 parent 648d861 commit 2fc969e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions containers/src/Kokkos_Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
#define KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_VECTOR
#endif

#if !defined(KOKKOS_ENABLE_DEPRECATED_CODE_4) || \
defined(KOKKOS_ENABLE_DEPRECATION_WARNINGS)
namespace {
[[deprecated("Deprecated <Kokkos_Vector.hpp> header is included")]] int
emit_warning_kokkos_vector_deprecated() {
return 0;
}
static auto do_not_include = emit_warning_kokkos_vector_deprecated();
} // namespace
#endif

#include <Kokkos_Core_fwd.hpp>
#include <Kokkos_DualView.hpp>

Expand Down

0 comments on commit 2fc969e

Please sign in to comment.