J
JustSomeGuy
I am passing an istringstream to a function. I want that function to
get a copy of the istringstream and not a refrence to it.
ie when the function returns I want the istringstream to be
unmodified...
However when I try to pass it
fn(istringstream s) // doesn't compile
but
fn(istringstream & s) // does.
What should I do to?
I tried to make a copy:
istringstream hold = s
but that doesn't compile either...
help!
get a copy of the istringstream and not a refrence to it.
ie when the function returns I want the istringstream to be
unmodified...
However when I try to pass it
fn(istringstream s) // doesn't compile
but
fn(istringstream & s) // does.
What should I do to?
I tried to make a copy:
istringstream hold = s
but that doesn't compile either...
help!