更新时间:2023-11-30 20:39:40
您可以使用
template <class... Args>
std::tuple<Args...> foo(proxy<Args, const char*>... names);
其中 proxy
是
template<class T, class E>
using proxy = E;
您可以在此处看到以下内容: https://godbolt.org/g/SHBYzy
You can see this in action here: https://godbolt.org/g/SHBYzy