回答編集履歴

2

fix: C++17ではtypename必要

2020/07/07 02:43

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  void func(Vec&& vec){
20
20
 
21
- using Type = std::remove_cv_t<std::remove_reference_t<Vec>>::value_type;
21
+ using Type = typename std::remove_cv_t<std::remove_reference_t<Vec>>::value_type;
22
22
 
23
23
  // using Type = std::remove_cvref_t<Vec>::value_type; // C++20以降
24
24
 

1

add external link

2020/07/07 02:43

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -31,3 +31,7 @@
31
31
  }
32
32
 
33
33
  ```
34
+
35
+
36
+
37
+ [https://qiita.com/7of9/items/6a3314af4a4369d85631](https://qiita.com/7of9/items/6a3314af4a4369d85631) にあるコメントも参考にどうぞ。