r270538 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Apr 24 09:46:00 GMT 2019


Author: redi
Date: Wed Apr 24 09:46:07 2019
New Revision: 270538

URL: https://gcc.gnu.org/viewcvs?rev=270538&root=gcc&view=rev
Log:
PR libstdc++/90220 Fix std::any_cast for function pointers

	PR libstdc++/90220 (partial)
	* include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
	not attempt ill-formed static_cast to pointers to non-object types.
	* testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
	function types.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/any
    trunk/libstdc++-v3/testsuite/20_util/any/misc/any_cast.cc



More information about the Libstdc++-cvs mailing list