Skip to content

Commit a2fa7da

Browse files
committed
extractor::vec<std::string>() out of class
1 parent b038184 commit a2fa7da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/arguments.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ class extractor : public argument_helper<const mxArray> {
6969
return mx_to_vector<T>(array[pos]);
7070
}
7171

72-
template<>
73-
std::vector<std::string> vec(size_t pos) const {
74-
return mx_to_strings(array[pos]);
75-
}
76-
7772
std::vector<nix::Value> vec(size_t pos) const {
7873
return mx_to_values(array[pos]);
7974
}
@@ -122,6 +117,11 @@ class extractor : public argument_helper<const mxArray> {
122117
private:
123118
};
124119

120+
template<>
121+
inline std::vector<std::string> extractor::vec(size_t pos) const {
122+
return mx_to_strings(array[pos]);
123+
}
124+
125125

126126
class infusor : public argument_helper<mxArray> {
127127
public:

0 commit comments

Comments
 (0)