T
Tobias Müller
Haochen Xie said:Tobias must not have read your whole code snippet.
I did, but you obviously didn't read _my_ entire post, especially the
quotes that you snipped away.
You should write the for loop like this:
for(double xx; source >> xx; )
He must have thought your code is like "for(number xx; source >> xx".
In this case, simply adding "using name = double;" would work.
I was referring to the following original snippet from Stefan Ram:
So if this works with int, it should also work with double.
Tobi