Skip to content

Drop stringstream#1347

Open
vadz wants to merge 5 commits into
SOCI:masterfrom
vadz:drop-istringstream
Open

Drop stringstream#1347
vadz wants to merge 5 commits into
SOCI:masterfrom
vadz:drop-istringstream

Conversation

@vadz
Copy link
Copy Markdown
Member

@vadz vadz commented Apr 27, 2026

Remove almost all remaining uses of std::stringstream.

vadz added 5 commits April 27, 2026 23:51
Use SOCI cstring_to_xxx() functions for consistency with the other
backends and because they should also be more slightly more efficient.
Use SOCI cstring_to_integer() instead of std::istringstream and throw an
exception if an invalid value is specified for this parameter.
Just small clean up: don't use stringstream when we really need just an
ostringstream.
Use fmt::format() to build them directly instead, this is much simpler.

Also get rid of useless and trivial check_sqlite_err() function to
simplify the code a bit more.
Check for ERANGE which is the only way to detect a value out of range of
long long type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant