cirocosta / yahttp-parser

A naive C++ HTTP parser implementation using Bison and Flex
GNU General Public License v2.0
1 stars 1 forks source link

simplify parser interface with stringstream #15

Open cirocosta opened 9 years ago

cirocosta commented 9 years ago

we can take advantage of move semantics and then reduce the amount of string conversions that are going on

cirocosta commented 9 years ago

i was thinking of relying on sstream move semantics (c++11) but it seems like gcc < 5.1 doesn't support it. We could rely on 5.1 but i'm not very confident on using it. 5.2 would be a better deal (not available at ubuntu toolchain builds yet).

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54316

One option is to develop our own StreamPtr stuff and pass it around ... idk