Skip to content

Instantly share code, notes, and snippets.

@zoecarver
Created April 22, 2021 18:24
Show Gist options
  • Save zoecarver/594015f42664e3daa7ab7c3978027682 to your computer and use it in GitHub Desktop.
Save zoecarver/594015f42664e3daa7ab7c3978027682 to your computer and use it in GitHub Desktop.
*** with-deleted.txt 2021-04-22 11:20:57.000000000 -0700
--- without-deleted.txt 2021-04-22 11:21:38.000000000 -0700
***************
*** 1,42 ****
! /Users/zoecarver/Developer/llvm-source/llvm-project/libcxx/test/std/ranges/range.access/range.prim/size.compile.pass.cpp:199:3: error: call to deleted function call operator in type 'const std::ranges::__size::__fn'
std::ranges::size(d);
^~~~~~~~~~~~~~~~~
- /Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:105:10: note: candidate function [with auto:1 = InvalidMinusBeginEnd &] has been explicitly deleted
- size_t operator()(auto &&) const = delete;
- ^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:82:34: note: candidate template ignored: could not match '_Tp [_Sz]' against 'InvalidMinusBeginEnd'
[[nodiscard]] constexpr size_t operator()(_Tp (&)[_Sz]) const noexcept {
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:87:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:86:13: note: because 'InvalidMinusBeginEnd &' does not satisfy '__member_size'
template <__member_size _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:58:50: note: because 'std::__1::__decay_copy(std::__1::forward<_Tp>(__t).size())' would be invalid: no member named 'size' in 'InvalidMinusBeginEnd'
{ _VSTD::__decay_copy(_VSTD::forward<_Tp>(__t).size()) } -> integral;
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:93:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:92:13: note: because 'InvalidMinusBeginEnd &' does not satisfy '__unqualified_size'
template <__unqualified_size _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:67:27: note: because 'std::__1::__decay_copy(size(std::__1::forward<_Tp>(__t)))' would be invalid: call to deleted function 'size'
{ _VSTD::__decay_copy(size(_VSTD::forward<_Tp>(__t))) } -> integral;
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:99:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:98:12: note: because 'InvalidMinusBeginEnd &' does not satisfy '__difference'
template<__difference _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:76:7: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const std::ranges::__begin::__fn'
{ ranges::begin(__t) } -> forward_iterator;
! ^
! /Users/zoecarver/Developer/llvm-source/llvm-project/libcxx/test/std/ranges/range.access/range.prim/size.compile.pass.cpp:199:20: error: attempt to use a deleted function
! std::ranges::size(d);
! ^
! /Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:105:10: note: 'operator()<InvalidMinusBeginEnd &>' has been explicitly marked deleted here
! size_t operator()(auto &&) const = delete;
! ^
--- 1,33 ----
! /Users/zoecarver/Developer/llvm-source/llvm-project/libcxx/test/std/ranges/range.access/range.prim/size.compile.pass.cpp:199:3: error: no matching function for call to object of type 'const std::ranges::__size::__fn'
std::ranges::size(d);
^~~~~~~~~~~~~~~~~
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:82:34: note: candidate template ignored: could not match '_Tp [_Sz]' against 'InvalidMinusBeginEnd'
[[nodiscard]] constexpr size_t operator()(_Tp (&)[_Sz]) const noexcept {
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:87:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:86:13: note: because 'InvalidMinusBeginEnd &' does not satisfy '__member_size'
template <__member_size _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:58:50: note: because 'std::__1::__decay_copy(std::__1::forward<_Tp>(__t).size())' would be invalid: no member named 'size' in 'InvalidMinusBeginEnd'
{ _VSTD::__decay_copy(_VSTD::forward<_Tp>(__t).size()) } -> integral;
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:93:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:92:13: note: because 'InvalidMinusBeginEnd &' does not satisfy '__unqualified_size'
template <__unqualified_size _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:67:27: note: because 'std::__1::__decay_copy(size(std::__1::forward<_Tp>(__t)))' would be invalid: call to deleted function 'size'
{ _VSTD::__decay_copy(size(_VSTD::forward<_Tp>(__t))) } -> integral;
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:99:41: note: candidate template ignored: constraints not satisfied [with _Tp = InvalidMinusBeginEnd &]
[[nodiscard]] constexpr integral auto operator()(_Tp&& __t) const
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:98:12: note: because 'InvalidMinusBeginEnd &' does not satisfy '__difference'
template<__difference _Tp>
^
/Users/zoecarver/Developer/llvm-source/build/include/c++/v1/__ranges/size.h:76:7: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const std::ranges::__begin::__fn'
{ ranges::begin(__t) } -> forward_iterator;
! ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment