We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as
1 parent 42a3fe9 commit 7f73d24Copy full SHA for 7f73d24
include/cpp2util.h
@@ -743,7 +743,7 @@ inline constexpr auto as() -> auto
743
// and trying to cast from a value that is in the half of the value space that isn't
744
// representable in the target type C is flagged as a Type safety contract violation
745
template< typename C >
746
-inline constexpr auto as(auto const& x) -> auto
+inline constexpr auto as(auto const& x CPP2_SOURCE_LOCATION_PARAM_WITH_DEFAULT) -> auto
747
requires (
748
std::is_integral_v<C> &&
749
std::is_integral_v<CPP2_TYPEOF(x)> &&
0 commit comments