void foo( const std::unordered_map<char, int> & m ) using M = std::remove_const< decltype( m )>; mutable_map['a'] = 42;
} 此操作失败,并显示"no match for operator[]“。在我的实际代码中,我在std</
请注意,我使用std::thread只是为了在错误中获取可读的类型: const int * first; std::thread s = std::remove_const<deref>::type{}; // const int ???std::thread s2 = deref{}; // const int
std</