-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stringstream-not-empty check for Visual Studio 2008
- Check if the stringstream is not empty by using if(ss.tellp() > 0) instead of if(ss.tellp()). Prior to this change the latter was used, but Visual Studio 2008 returns -1 when the stringstream is empty instead of 0 like later versions. Ref: https://stackoverflow.com/q/526270
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters