diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-08-27 00:20:31 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-08-28 11:52:22 +0100 |
commit | 952095bb053cfef47b48cc4345d658b8d8829800 (patch) | |
tree | cacb2bc6592767d527461f9758939ae3fb4cafb2 /libssp | |
parent | 91f78b673b1f8d5bca52b1947206f71c2ffa4f60 (diff) | |
download | gcc-952095bb053cfef47b48cc4345d658b8d8829800.zip gcc-952095bb053cfef47b48cc4345d658b8d8829800.tar.gz gcc-952095bb053cfef47b48cc4345d658b8d8829800.tar.bz2 |
libstdc++: Name std::function template parameter
This avoids "<template-parameter-2-2>" being shown in the diagnostics
for ill-formed uses of std::function constructor:
In instantiation of 'std::function<_Res(_ArgTypes ...)>::function(_Functor&&)
[with _Functor = f(f()::_Z1fv.frame*)::<lambda()>;
<template-parameter-2-2> = void; _Res = void; _ArgTypes = {}]'
Instead we get:
In instantiation of 'std::function<_Res(_ArgTypes ...)>::function(_Functor&&)
[with _Functor = f(f()::_Z1fv.frame*)::<lambda()>;
_Constraints = void; _Res = void; _ArgTypes = {}]'
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/bits/std_function.h (function::function(F&&)): Give
name to defaulted template parameter, to improve diagnostics.
Use markdown for more doxygen comments.
Diffstat (limited to 'libssp')
0 files changed, 0 insertions, 0 deletions