It depends a little on your flow to determine what is going on. Embedded streams differ from each other in that some of them may have separate read and write positions (string stream), while others may have only one (fstream).
If the user is repositioning and indicating both, you might need to move both. If this is a zero-offset search in order to get the current position, it is impractical to fail if the positions are different.
Bo persson
source share