Skip to content

Commit ea2ea0f

Browse files
committed
Compilers suck.
1 parent 03e0491 commit ea2ea0f

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ jobs:
2727
2828
- name: test
2929
run: |
30-
cmake --build build/debug --config Debug --target test
31-
cmake --build build/release --config Release --target test
30+
cd build/debug
31+
ctest --build-config Debug
32+
cd ../..
33+
cd build/release
34+
ctest --build-config Release
35+
cd ../..

include/itsy/detail/bit_view.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,37 +755,37 @@ namespace ITSY_BITSY_DETAIL_NAMESPACE
755755
}
756756

757757
constexpr __base_iterator
758-
_M_storage_begin() noexcept(noexcept(__adl_begin(this->_M_storage_unwrapped())))
758+
_M_storage_begin() noexcept(noexcept(__adl_begin(__unwrap_ref(::std::declval<container_type>()))))
759759
{
760760
return __adl_begin(this->_M_storage_unwrapped());
761761
}
762762

763763
constexpr __base_sentinel
764-
_M_storage_end() noexcept(noexcept(__adl_end(this->_M_storage_unwrapped())))
764+
_M_storage_end() noexcept(noexcept(__adl_end(__unwrap_ref(::std::declval<container_type>()))))
765765
{
766766
return __adl_end(this->_M_storage_unwrapped());
767767
}
768768

769769
constexpr __base_c_iterator
770-
_M_storage_begin() const noexcept(noexcept(__adl_begin(this->_M_storage_unwrapped())))
770+
_M_storage_begin() const noexcept(noexcept(__adl_begin(__unwrap_ref(::std::declval<container_type>()))))
771771
{
772772
return __adl_begin(this->_M_storage_unwrapped());
773773
}
774774

775775
constexpr __base_c_sentinel
776-
_M_storage_end() const noexcept(noexcept(__adl_end(this->_M_storage_unwrapped())))
776+
_M_storage_end() const noexcept(noexcept(__adl_end(__unwrap_ref(::std::declval<container_type>()))))
777777
{
778778
return __adl_end(this->_M_storage_unwrapped());
779779
}
780780

781781
constexpr __base_c_iterator
782-
_M_storage_cbegin() const noexcept(noexcept(__adl_cbegin(this->_M_storage_unwrapped())))
782+
_M_storage_cbegin() const noexcept(noexcept(__adl_cbegin(__unwrap_ref(::std::declval<container_type>()))))
783783
{
784784
return __adl_cbegin(this->_M_storage_unwrapped());
785785
}
786786

787787
constexpr __base_c_sentinel
788-
_M_storage_cend() const noexcept(noexcept(__adl_cend(this->_M_storage_unwrapped())))
788+
_M_storage_cend() const noexcept(noexcept(__adl_cend(__unwrap_ref(::std::declval<container_type>()))))
789789
{
790790
return __adl_cend(this->_M_storage_unwrapped());
791791
}

tests/include/itsy/tests/ranges.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#ifndef ITSY_BITSY_TESTS_RANGES_HPP
1414
#define ITSY_BITSY_TESTS_RANGES_HPP
1515

16+
#include <itsy/bitsy.hpp>
17+
1618
#include <cstddef>
1719

1820
namespace bitsy::tests
@@ -72,7 +74,7 @@ namespace bitsy::tests
7274

7375
template <typename _Dummy = _It,
7476
::std::enable_if_t<
75-
__detail::__is_iterator_concept_or_better_v<contiguous_iterator_tag, _Dummy>>* = nullptr>
77+
::ITSY_BITSY_DETAIL_NAMESPACE::__is_iterator_concept_or_better_v<::ITSY_BITSY_DETAIL_NAMESPACE::__contiguous_iterator_tag, _Dummy>>* = nullptr>
7678
constexpr pointer data() const noexcept {
7779
return ::std::addressof(*this->_M_it);
7880
}

0 commit comments

Comments
 (0)