Commit dddaed5 1 parent 02b5662 commit dddaed5 Copy full SHA for dddaed5
File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct mir_rcarray
24
24
private:
25
25
26
26
T* _payload = nullptr ;
27
- using U = typename std::remove_all_extents <T>::type;
27
+ using U = typename std::remove_const <T>::type;
28
28
29
29
void _cpp_copy_constructor (const mir_rcarray& rhs) noexcept ;
30
30
mir_rcarray& _cpp_assign (const mir_rcarray& rhs) noexcept ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ struct mir_rcptr
89
89
90
90
T* _payload = nullptr ;
91
91
mir_rc_context* _context = nullptr ;
92
- using U = typename std::remove_all_extents <T>::type;
92
+ using U = typename std::remove_const <T>::type;
93
93
94
94
public:
95
95
@@ -205,7 +205,7 @@ struct mir_rcptr<T* const>
205
205
206
206
T* _payload = nullptr ;
207
207
mir_rc_context* _context = nullptr ;
208
- using U = typename std::remove_all_extents <T>::type;
208
+ using U = typename std::remove_const <T>::type;
209
209
static constexpr void (*destr)(U&) = std::is_destructible<T>::value ? &mir::Destructor<U>::destroy : nullptr;
210
210
static constexpr mir::type_info_g<U> typeInfoT = {destr, sizeof (T)};
211
211
@@ -322,7 +322,7 @@ struct mir_rcptr<T*>
322
322
323
323
T* _payload = nullptr ;
324
324
mir_rc_context* _context = nullptr ;
325
- using U = typename std::remove_all_extents <T>::type;
325
+ using U = typename std::remove_const <T>::type;
326
326
static constexpr void (*destr)(U&) = std::is_destructible<T>::value ? &mir::Destructor<U>::destroy : nullptr;
327
327
static constexpr mir::type_info_g<U> typeInfoT = {destr, sizeof (T)};
328
328
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ struct mir_series
33
33
// / Data / Value type aliases
34
34
using Data = typename std::remove_reference<decltype(_data._iterator[0 ])>::type;
35
35
36
- using UnqualIndex = typename std::remove_all_extents <Index>::type;
37
- using UnqualData = typename std::remove_all_extents <Data>::type;
36
+ using UnqualIndex = typename std::remove_const <Index>::type;
37
+ using UnqualData = typename std::remove_const <Data>::type;
38
38
39
39
using Observation = std::pair<Index, Data>;
40
40
// using ConstObservation = std::pair<const Index, const Data>;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ struct mir_slim_rcptr
11
11
private:
12
12
13
13
T* _payload = nullptr ;
14
- using U = typename std::remove_all_extents <T>::type;
14
+ using U = typename std::remove_const <T>::type;
15
15
16
16
public:
17
17
You can’t perform that action at this time.
0 commit comments