Skip to content
Snippets Groups Projects
Commit 8761a5d1 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix to string of variant

parent 707055ce
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -104,7 +104,7 @@ struct variant_helper<F, Ts...> {
 
inline static std::string string(type_id_hash_code id, const void* data) {
if (id == typeid(F).hash_code())
return (std::string) *reinterpret_cast<const F*>(data);
return std::to_string ( *reinterpret_cast<const F*>(data) );
else
return variant_helper<Ts...>::string(id, data);
}
......
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