kameranis

MEX error output

Jan 4th, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 30.56 KB | None | 0 0
  1. Building with 'g++'.
  2. Warning: You are using gcc version '7.5.0'. The version of gcc is not supported. The version currently
  3. supported with MEX is '6.3.x'. For a list of currently supported compilers see:
  4. https://www.mathworks.com/support/compilers/current_release.
  5. Error using mex
  6. In file included from /home/kameranis/MATLAB/R2020a/extern/include/mexAdapter.hpp:18:0,
  7.                  from /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:22:
  8. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp: In instantiation of ‘void
  9. matlab::engine::detail::validateTIsSupported() [with T = matlab::data::CharArray&]’:
  10. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:68:40:   required from
  11. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  12. matlab::data::CharArray&]’
  13. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  14. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  15. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  16. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  17. std::__cxx11::basic_string<char16_t>]’
  18. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  19. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  20. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  21. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  22. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:51:17: error: static
  23. assertion failed: Attempted to use unsupported types.
  24.                  static_assert(
  25.                  ^~~~~~~~~~~~~
  26. In file included from /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray.hpp:22:0,
  27.                  from /home/kameranis/MATLAB/R2020a/extern/include/mexAdapter.hpp:10,
  28.                  from /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:22:
  29. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  30. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  31. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  32. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  33. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  34. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  35. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  36. matlab::data::CharArray&]’
  37. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  38. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  39. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  40. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  41. std::__cxx11::basic_string<char16_t>]’
  42. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  43. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  44. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  45. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  46. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47: error: no matching
  47. function for call to ‘createArrayWithIterator(std::__shared_ptr<matlab::data::impl::ArrayFactoryImpl,
  48. (__gnu_cxx::_Lock_policy)2>::element_type*, std::remove_reference<std::vector<long unsigned int>&>::type,
  49. std::initializer_list<matlab::data::CharArray>::const_iterator,
  50. std::initializer_list<matlab::data::CharArray>::const_iterator)’
  51.          return detail::createArrayWithIterator(pImpl.get(), std::move(dims), data.begin(),
  52.                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  53.                                                 data.end());
  54.                                                 ~~~~~~~~~~~
  55. In file included from /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:22:0,
  56.                  from /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray.hpp:22,
  57.                  from /home/kameranis/MATLAB/R2020a/extern/include/mexAdapter.hpp:10,
  58.                  from /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:22:
  59. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:28:13: note:
  60. candidate: template<class ItType, class T> typename std::enable_if<((matlab::data::is_complex<T>::value ||
  61. std::is_arithmetic<T>::value) && (! std::is_same<T, bool>::value)), matlab::data::TypedArray<typename
  62. matlab::data::GetReturnType<T>::type> >::type
  63. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  64. matlab::data::ArrayDimensions, ItType, ItType)
  65.              createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims, ItType
  66.              begin, ItType end) {
  67.              ^~~~~~~~~~~~~~~~~~~~~~~
  68. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:28:13: note:
  69. template argument deduction/substitution failed:
  70. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  71. of ‘template<class ItType, class T> typename std::enable_if<((matlab::data::is_complex<T>::value ||
  72. std::is_arithmetic<T>::value) && (! std::is_same<T, bool>::value)), matlab::data::TypedArray<typename
  73. matlab::data::GetReturnType<T>::type> >::type
  74. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  75. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  76. matlab::data::CharArray]’:
  77. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  78. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  79. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  80. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  81. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  82. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  83. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  84. matlab::data::CharArray&]’
  85. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  86. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  87. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  88. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  89. std::__cxx11::basic_string<char16_t>]’
  90. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  91. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  92. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  93. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  94. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:28:13: error: no
  95. type named ‘type’ in ‘struct std::enable_if<false, matlab::data::TypedArray<matlab::data::CharArray> >’
  96. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  97. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  98. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  99. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  100. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  101. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  102. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  103. matlab::data::CharArray&]’
  104. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  105. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  106. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  107. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  108. std::__cxx11::basic_string<char16_t>]’
  109. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  110. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  111. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  112. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  113. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:52:13: note:
  114. candidate: template<class ItType, class T> typename std::enable_if<std::is_same<T, bool>::value,
  115. matlab::data::TypedArray<bool> >::type
  116. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  117. matlab::data::ArrayDimensions, ItType, ItType)
  118.              createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims, ItType
  119.              begin, ItType end) {
  120.              ^~~~~~~~~~~~~~~~~~~~~~~
  121. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:52:13: note:
  122. template argument deduction/substitution failed:
  123. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  124. of ‘template<class ItType, class T> typename std::enable_if<std::is_same<T, bool>::value,
  125. matlab::data::TypedArray<bool> >::type
  126. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  127. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  128. matlab::data::CharArray]’:
  129. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  130. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  131. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  132. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  133. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  134. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  135. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  136. matlab::data::CharArray&]’
  137. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  138. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  139. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  140. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  141. std::__cxx11::basic_string<char16_t>]’
  142. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  143. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  144. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  145. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  146. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:52:13: error: no
  147. type named ‘type’ in ‘struct std::enable_if<false, matlab::data::TypedArray<bool> >’
  148. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  149. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  150. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  151. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  152. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  153. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  154. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  155. matlab::data::CharArray&]’
  156. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  157. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  158. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  159. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  160. std::__cxx11::basic_string<char16_t>]’
  161. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  162. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  163. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  164. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  165. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:81:13: note:
  166. candidate: template<class ItType, class T> typename std::enable_if<(std::is_same<T,
  167. std::__cxx11::basic_string<char16_t> >::value || std::is_same<T, const char16_t*>::value),
  168. matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type> >::type
  169. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  170. matlab::data::ArrayDimensions, ItType, ItType)
  171.              createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims, ItType
  172.              begin, ItType end) {
  173.              ^~~~~~~~~~~~~~~~~~~~~~~
  174. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:81:13: note:
  175. template argument deduction/substitution failed:
  176. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  177. of ‘template<class ItType, class T> typename std::enable_if<(std::is_same<T,
  178. std::__cxx11::basic_string<char16_t> >::value || std::is_same<T, const char16_t*>::value),
  179. matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type> >::type
  180. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  181. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  182. matlab::data::CharArray]’:
  183. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  184. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  185. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  186. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  187. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  188. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  189. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  190. matlab::data::CharArray&]’
  191. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  192. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  193. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  194. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  195. std::__cxx11::basic_string<char16_t>]’
  196. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  197. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  198. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  199. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  200. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:81:13: error: no
  201. type named ‘type’ in ‘struct std::enable_if<false, matlab::data::TypedArray<matlab::data::CharArray> >’
  202. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  203. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  204. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  205. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  206. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  207. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  208. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  209. matlab::data::CharArray&]’
  210. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  211. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  212. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  213. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  214. std::__cxx11::basic_string<char16_t>]’
  215. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  216. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  217. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  218. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  219. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:110:13: note:
  220. candidate: template<class ItType, class T> typename std::enable_if<std::is_same<T,
  221. matlab::data::Array>::value, matlab::data::TypedArray<T> >::type
  222. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  223. matlab::data::ArrayDimensions, ItType, ItType)
  224.              createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims, ItType
  225.              begin, ItType end) {
  226.              ^~~~~~~~~~~~~~~~~~~~~~~
  227. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:110:13: note:
  228. template argument deduction/substitution failed:
  229. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  230. of ‘template<class ItType, class T> typename std::enable_if<std::is_same<T, matlab::data::Array>::value,
  231. matlab::data::TypedArray<T> >::type
  232. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  233. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  234. matlab::data::CharArray]’:
  235. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  236. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  237. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  238. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  239. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  240. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  241. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  242. matlab::data::CharArray&]’
  243. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  244. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  245. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  246. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  247. std::__cxx11::basic_string<char16_t>]’
  248. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  249. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  250. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  251. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  252. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:110:13: error: no
  253. type named ‘type’ in ‘struct std::enable_if<false, matlab::data::TypedArray<matlab::data::CharArray> >’
  254. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  255. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  256. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  257. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  258. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  259. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  260. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  261. matlab::data::CharArray&]’
  262. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  263. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  264. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  265. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  266. std::__cxx11::basic_string<char16_t>]’
  267. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  268. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  269. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  270. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  271. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:140:13: note:
  272. candidate: template<class ItType, class T> typename std::enable_if<(std::is_same<T, const char*>::value ||
  273. std::is_same<T, std::__cxx11::basic_string<char> >::value),
  274. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >::type
  275. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  276. matlab::data::ArrayDimensions, ItType, ItType)
  277.              createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims, ItType
  278.              begin, ItType end) {
  279.              ^~~~~~~~~~~~~~~~~~~~~~~
  280. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:140:13: note:
  281. template argument deduction/substitution failed:
  282. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  283. of ‘template<class ItType, class T> typename std::enable_if<(std::is_same<T, const char*>::value ||
  284. std::is_same<T, std::__cxx11::basic_string<char> >::value),
  285. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >::type
  286. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  287. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  288. matlab::data::CharArray]’:
  289. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  290. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  291. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  292. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  293. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  294. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  295. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  296. matlab::data::CharArray&]’
  297. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  298. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  299. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  300. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  301. std::__cxx11::basic_string<char16_t>]’
  302. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  303. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  304. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  305. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  306. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:140:13: error: no
  307. type named ‘type’ in ‘struct std::enable_if<false,
  308. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >’
  309. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp: In instantiation of
  310. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  311. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  312. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  313. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’:
  314. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  315. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  316. matlab::data::CharArray&]’
  317. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  318. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  319. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  320. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  321. std::__cxx11::basic_string<char16_t>]’
  322. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  323. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  324. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  325. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  326. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:174:17: note:
  327. candidate: template<class ItType, class T> typename std::enable_if<std::is_same<T,
  328. matlab::data::optional<std::__cxx11::basic_string<char16_t> > >::value,
  329. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >::type
  330. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  331. matlab::data::ArrayDimensions, ItType, ItType)
  332.                  createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl* impl, ArrayDimensions dims,
  333.                  ItType begin, ItType end) {
  334.                  ^~~~~~~~~~~~~~~~~~~~~~~
  335. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:174:17: note:
  336. template argument deduction/substitution failed:
  337. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp: In substitution
  338. of ‘template<class ItType, class T> typename std::enable_if<std::is_same<T,
  339. matlab::data::optional<std::__cxx11::basic_string<char16_t> > >::value,
  340. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >::type
  341. matlab::data::detail::createArrayWithIterator(matlab::data::impl::ArrayFactoryImpl*,
  342. matlab::data::ArrayDimensions, ItType, ItType) [with ItType = const matlab::data::CharArray*; T =
  343. matlab::data::CharArray]’:
  344. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/ArrayFactory.hpp:145:47:   required from
  345. ‘matlab::data::TypedArray<typename matlab::data::GetReturnType<T>::type>
  346. matlab::data::ArrayFactory::createArray(matlab::data::ArrayDimensions, std::initializer_list<_Tp>) [with T =
  347. matlab::data::CharArray; typename matlab::data::GetReturnType<T>::type = matlab::data::CharArray;
  348. matlab::data::ArrayDimensions = std::vector<long unsigned int>]’
  349. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:70:66:   required from
  350. ‘matlab::data::Array matlab::engine::detail::createRhs(matlab::data::ArrayFactory&, T&&) [with T =
  351. matlab::data::CharArray&]’
  352. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:255:26:   required from
  353. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, const
  354. std::shared_ptr<std::basic_streambuf<char16_t> >&, const std::shared_ptr<std::basic_streambuf<char16_t> >&,
  355. RhsArgs&& ...) [with ReturnType = void; RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string =
  356. std::__cxx11::basic_string<char16_t>]’
  357. /home/kameranis/MATLAB/R2020a/extern/include/cppmex/detail/mexApiAdapterImpl.hpp:276:29:   required from
  358. ‘ReturnType matlab::engine::MATLABEngine::feval(const u16string&, RhsArgs&& ...) [with ReturnType = void;
  359. RhsArgs = {matlab::data::CharArray&}; std::__cxx11::u16string = std::__cxx11::basic_string<char16_t>]’
  360. /home/kameranis/Doctoral/graphtools/osvv/final/readPtn.cpp:68:46:   required from here
  361. /home/kameranis/MATLAB/R2020a/extern/include/MatlabDataArray/detail/ArrayFactoryHelpers.hpp:174:17: error: no
  362. type named ‘type’ in ‘struct std::enable_if<false,
  363. matlab::data::TypedArray<matlab::data::optional<std::__cxx11::basic_string<char16_t> > > >’
Advertisement
Add Comment
Please, Sign In to add comment