Skip to content

Commit

Permalink
[oneDPL][ranges] + comment before #include <ranges>
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Apr 8, 2024
1 parent cb4f890 commit 0f656ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/oneapi/dpl/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#define _ONEDPL_RANGES

#include "oneapi/dpl/internal/common_config.h"
// ATTENTION!!! Include the header from the C++ standard library before the oneDPL config header to see whether the _PSTL_VERSION macro is defined
#include <ranges>

// TODO: Figure out the order of headers and add standard header version/ciso646 for library version macros.
#if defined(_GLIBCXX_RELEASE)
Expand All @@ -31,7 +33,6 @@ static_assert(_ONEDPL_CXX_STANDARD_LIBRARY_CHECK,
"The use of the range-based API requires the C++ standard libraries coming "
"with GCC 8.1 (or higher) or Clang 7 (or higher)");

#include <ranges>
#include "oneapi/dpl/pstl/onedpl_config.h"
#include "oneapi/dpl/pstl/ranges_defs.h"

Expand Down

0 comments on commit 0f656ba

Please sign in to comment.