Skip to content
Snippets Groups Projects
Commit 96a35f71 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.string] add cast

parent 454b513f
No related branches found
No related tags found
No related merge requests found
......@@ -338,7 +338,7 @@ static inline typename std::enable_if<!is_vector<T>::value && !is_matrix<T>::val
to_string(const T& ss, const std::size_t precision)
{
std::ostringstream out;
out << std::setprecision(precision) << ss;
out << std::setprecision(boost::numeric_cast<int>(precision)) << ss;
return out.str();
}
......
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