File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -72,17 +72,6 @@ inline mxArray* make_mx_array(const std::vector<nix::Value> &v) {
72
72
return data;
73
73
}
74
74
75
-
76
- template <typename T>
77
- mxArray* make_mx_array (const boost::optional<T> &opt) {
78
- if (opt) {
79
- return make_mx_array (*opt);
80
- }
81
- else {
82
- return nullptr ;
83
- }
84
- }
85
-
86
75
template <typename T>
87
76
typename std::enable_if<std::is_arithmetic<T>::value, mxArray>::type* make_mx_array (T val) {
88
77
DType2 dtype = dtype_nix2mex (nix::to_data_type<T>::value);
@@ -156,5 +145,15 @@ inline mxArray* make_mx_array(const std::vector<nix::Dimension> &dims) {
156
145
return data;
157
146
}
158
147
148
+ template <typename T>
149
+ mxArray* make_mx_array (const boost::optional<T> &opt) {
150
+ if (opt) {
151
+ return make_mx_array (*opt);
152
+ }
153
+ else {
154
+ return nullptr ;
155
+ }
156
+ }
157
+
159
158
160
159
#endif
You can’t perform that action at this time.
0 commit comments