Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ jobs:
fail-fast: false
matrix:
compiler: [ intel ]
standard: [ c++20 ]
standard: [ 20, 23 ]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -464,7 +464,12 @@ jobs:
run: |
cd ../boost-root
mkdir __build__ && cd __build__
cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON ..
cmake -DCMAKE_C_COMPILER=icx \
-DCMAKE_CXX_COMPILER=icpx \
-DCMAKE_CXX_STANDARD=${{ matrix.standard }} \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DBOOST_INCLUDE_LIBRARIES=$LIBRARY \
-DBUILD_TESTING=ON ..

- name: Build tests
run: |
Expand Down
14 changes: 14 additions & 0 deletions include/boost/crypt2/detail/compat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,20 @@ using unexpected =
boost::crypt::detail::expected_impl::unexpected<E>;
#endif

// Endian
enum class endian : int
{
#ifdef BOOST_CRYPT_HAS_CUDA
little = static_cast<int>(cuda::std::endian::little),
big = static_cast<int>(cuda::std::endian::big),
native = static_cast<int>(cuda::std::endian::native),
#else
little = static_cast<int>(std::endian::little),
big = static_cast<int>(std::endian::big),
native = static_cast<int>(std::endian::native),
#endif
};

} // namespace boost::crypt::compat

#endif // BOOST_CRYPT2_DETAIL_COMPAT_HPP
Loading
Loading