mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
Relax the complete-type checks that are happening under __invokable<Fp, Args...> to only check Fp, and not Args... . This should be sufficient to give the desired high quality diagnostics under both bind and function. And this allows a test reported by Rich E on cfe-dev to pass. Tracked by <rdar://problem/11880602>.
llvm-svn: 160285
This commit is contained in:
@@ -2853,7 +2853,7 @@ __invoke(_Fp&& __f, _Args&& ...__args)
|
||||
|
||||
template <class _Fp, class ..._Args>
|
||||
struct __invokable_imp
|
||||
: private __check_complete<_Fp, _Args...>
|
||||
: private __check_complete<_Fp>
|
||||
{
|
||||
typedef decltype(
|
||||
__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...)
|
||||
|
||||
Reference in New Issue
Block a user