int x = fromString(\"test\") :could not deduce template argument for \'ValueType\'
int x = fromString(\"test\")
int x = fromString(\"test\") : works
It looks like your template has the return type templated which cannot be automatically deduced which is why you need to add it in here.