C++ Logo

std-proposals

Advanced search

[std-proposals] template params of a function template

From: organicoman <organicoman_at_[hidden]>
Date: Wed, 10 Jul 2024 20:39:19 +0400
Hello Gents, Given this case:*****// primary template template<void(*)(int)>struct A;// specialization template<typename T, typename V ,template<typename, typename> F ,void (*(F<T,V>)(int)>struct A<F> { };******Why this specialization doesn't compile?And how to extract the template params of a function template, let saytemplate<typename T, typename V>void foo(int) {};In a templated struct that accepts function pointers, let saytemplate<void(*)(int)>struct A { // impl };Regards NadirSent from my Galaxy

Received on 2024-07-10 16:39:28