Skip to content

Fix C++20 std::remove_cvref_t compatibility with GCC 8 standard library to allow oneAPI buildability#1

Open
justinh2002 wants to merge 1 commit into
SciCompKL:masterfrom
justinh2002:master
Open

Fix C++20 std::remove_cvref_t compatibility with GCC 8 standard library to allow oneAPI buildability#1
justinh2002 wants to merge 1 commit into
SciCompKL:masterfrom
justinh2002:master

Conversation

@justinh2002
Copy link
Copy Markdown

@justinh2002 justinh2002 commented May 28, 2026

The oneAPI build fails because the Intel compiler resolves standard library headers from GCC 8, which does not provide std::remove_cvref_t(a C++20 addition only available from GCC 9+).

Replace all uses of std::remove_cvref_t<T> with the equivalent std::remove_cv_t<std::remove_reference_t<T>>, which has been available since C++14 and is semantically identical.

Affected files:

  • src/adjoint_petsc/util/mat_iterator_util.hpp
  • src/adjoint_petsc/util/vec_iterator_util.hpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant