Skip to content
Snippets Groups Projects
Unverified Commit 08718be6 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[string-internal] add forward to allow to_string to display vectors of matrices

parent 29c5c6d7
No related branches found
No related tags found
No related merge requests found
......@@ -389,6 +389,11 @@ inline std::string convert_to_string(const std::string ss, const std::size_t /*p
return std::string(ss);
}
// forward such that vectors of matrices can be converted
template <class M>
static inline typename std::enable_if<is_matrix<M>::value, std::string>::type
convert_to_string(const M& /*mat*/, const std::size_t /*precision*/);
template <class V>
static inline typename std::enable_if<is_vector<V>::value, std::string>::type
convert_to_string(const V& vec, const std::size_t precision)
......@@ -421,6 +426,7 @@ convert_to_string(const M& mat, const std::size_t precision)
return ret;
} // ... convert_to_string(...)
} // namespace internal
} // namespace Common
} // namespace XT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment