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

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Dec 10 16:15:00 GMT 2019


Author: redi
Date: Tue Dec 10 16:15:49 2019
New Revision: 279170

URL: https://gcc.gnu.org/viewcvs?rev=279170&root=gcc&view=rev
Log:
libstdc++: Fix bug in std::indirect_result_t

The alias template wasn't working because it applied iter_reference_t to
the pack of iterators before and after passing the pack to the
__indeirect_result helper.

	* include/bits/iterator_concepts.h (indirect_result_t): Do not apply
	iter_reference_t to parameter pack.
	* testsuite/24_iterators/indirect_callable/projected.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/24_iterators/indirect_callable/
    trunk/libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/iterator_concepts.h



More information about the Libstdc++-cvs mailing list