回答編集履歴

1

C++17

2021/02/27 12:53

投稿

yohhoy
yohhoy

スコア6191

test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  template <typename _Ty, size_t _column, size_t _row , typename _T>
10
10
 
11
- const std::enable_if<std::is_arithmetic<_T>::value, matrix<_Ty, _column, _row>>::type
11
+ const typename std::enable_if<std::is_arithmetic<_T>::value, matrix<_Ty, _column, _row>>::type
12
12
 
13
13
  operator *(_T i, matrix<_Ty, _column, _row> const& m);
14
14
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  template <typename _Ty, size_t _column, size_t _row, typename _T>
20
20
 
21
- const std::enable_if<std::is_arithmetic<_T>::value, matrix<_Ty, _column, _row>>::type
21
+ const typename std::enable_if<std::is_arithmetic<_T>::value, matrix<_Ty, _column, _row>>::type
22
22
 
23
23
  operator *( matrix<_Ty, _column, _row> const& m , _T i);
24
24
 
@@ -36,4 +36,4 @@
36
36
 
37
37
 
38
38
 
39
- Demo: [https://wandbox.org/permlink/9td0dF3PTCOf3DOv](https://wandbox.org/permlink/9td0dF3PTCOf3DOv)
39
+ Demo: [https://wandbox.org/permlink/Oeb3uDj4PldMLSkk](https://wandbox.org/permlink/Oeb3uDj4PldMLSkk)