質問編集履歴
1
ソースの訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
template<class T>
|
11
11
|
struct my_class_impl{
|
12
12
|
using type = T;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
template<>
|
15
15
|
struct my_class_impl<long>{
|
16
16
|
using type = int;
|
17
|
-
}
|
17
|
+
};
|
18
18
|
template<class T>
|
19
19
|
using my_class_t = my_class_impl<T>::type;//こうするしかないのでしょうか
|
20
20
|
};
|