Skip to content

Commit

Permalink
Update test-result due to cpp2util.h line numbers changing
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetarpmedia committed Feb 8, 2024
1 parent d0dd0c0 commit 98e2b9b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ pure2-expected-is-as.cpp2:34:18: error: use of undeclared identifier 'ex1'; did
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
In file included from pure2-expected-is-as.cpp:7:
../../../include/cpp2util.h:1600:72: error: invalid application of 'sizeof' to a function type
../../../include/cpp2util.h:1205:72: error: invalid application of 'sizeof' to a function type
(std::is_floating_point_v<From> && std::is_floating_point_v<To> && sizeof(From) > sizeof(To)) ||
^~~~~~~~~~~~
../../../include/cpp2util.h:2114:19: note: in instantiation of variable template specialization 'cpp2::is_narrowing_v' requested here
../../../include/cpp2util.h:2128:19: note: in instantiation of variable template specialization 'cpp2::is_narrowing_v' requested here
if constexpr (is_narrowing_v<C, CPP2_TYPEOF(x)>) {
^
pure2-expected-is-as.cpp2:39:22: note: in instantiation of function template specialization 'cpp2::as_<int, double (&)(double) noexcept>' requested here
auto val1 {cpp2::as_<int>(ex1)};
^
In file included from pure2-expected-is-as.cpp:7:
../../../include/cpp2util.h:1644:9: error: invalid application of 'sizeof' to a function type
../../../include/cpp2util.h:1249:9: error: invalid application of 'sizeof' to a function type
sizeof(CPP2_TYPEOF(x)) > sizeof(C)
^~~~~~~~~~~~~~~~~~~~~~
../../../include/cpp2util.h:2127:12: note: in instantiation of function template specialization 'cpp2::as<int, double (double) noexcept>' requested here
../../../include/cpp2util.h:2141:12: note: in instantiation of function template specialization 'cpp2::as<int, double (double) noexcept>' requested here
return as<C>(CPP2_FORWARD(x));
^
pure2-expected-is-as.cpp2:39:22: note: in instantiation of function template specialization 'cpp2::as_<int, double (&)(double) noexcept>' requested here
Expand Down

0 comments on commit 98e2b9b

Please sign in to comment.