tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Investigate alternative to temporary buffers in char_convert #146

Open tgockel opened 4 years ago

tgockel commented 4 years ago

In detail/char_convert.cpp, the functions convert_to_wide and convert_to_narrow use temporary buffers (backed by alloca when available). This might be better replaced by a two-pass system instead of an allocation.