Skip to content

Commit 38bab47

Browse files
committed
Fixup: as(): refactor of as() for std::variant
1 parent 7924b70 commit 38bab47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpp2util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ auto as(auto&& x CPP2_SOURCE_LOCATION_PARAM_WITH_DEFAULT_AS) -> decltype(auto)
20472047
return false;
20482048
});
20492049
if (!ptr) { Throw( std::bad_variant_access(), "'as' cast failed for 'variant'"); }
2050-
return forward_like<decltype(x)>(*ptr);
2050+
return cpp2::forward_like<decltype(x)>(*ptr);
20512051
}
20522052
else {
20532053
return nonesuch;

0 commit comments

Comments
 (0)