tgockel / zookeeper-cpp

A ZooKeeper client for C++.
http://tgockel.github.io/zookeeper-cpp/
Apache License 2.0
149 stars 40 forks source link

Remove allocation in connection_params parsing #59

Open tgockel opened 6 years ago

tgockel commented 6 years ago

extract_millis in connection.cpp uses std::stod, which requires conversion to a std::string -- an allocation. We should use std::from_chars but this is not supported (as of GCC 7.2).