[v3 PATCH] Implement LWG 2769, Redundant const in the return type of any_cast(const any&).
Jonathan Wakely
jwakely@redhat.com
Fri Dec 16 11:30:00 GMT 2016
On 15/12/16 22:33 +0200, Ville Voutilainen wrote:
>@@ -499,9 +501,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
> {
> static_assert(any::__is_valid_cast<_ValueType>(),
> "Template argument must be a reference or CopyConstructible type");
>- auto __p = any_cast<remove_reference_t<_ValueType>>(&__any);
>+ using _Up = remove_cv_t<remove_reference_t<_ValueType>>;
This typedef is unused and should be removed.
OK with that change, thanks.
More information about the Libstdc++
mailing list