如何在模板函數或類中實例化一個包含類型的容器變量? 我說對dependent scope; need typename in front; 推薦類型名稱但還是沒能使其發揮作用。 #include <iostream>
#include <array>
#include <type_traits>
#include <typeinfo>
#include <vector>
using n
請注意,我用std::thread只是在錯誤得到可讀類型: int main() {
const int * first;
using deref = decltype(*first);
std::thread s = std::remove_const<deref>::type{}; // const int ???
std::thread s2 = de