summaryrefslogtreecommitdiff
path: root/http/http_server.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-07-24 01:07:33 +0300
committerEd Tanous <ed@tanous.net>2022-08-05 02:44:34 +0300
commit9896eaed88332eca7334a564a2ea2e0baf135639 (patch)
treeeccd40d760bfd0d6e7ed77615af4fd8d5d2d679d /http/http_server.hpp
parent81584abe2616373033281ab2ec75407fc50306d1 (diff)
downloadbmcweb-9896eaed88332eca7334a564a2ea2e0baf135639.tar.xz
Drop boost::posix_time
Per the coding standard, if we can support what we need to do with std variants of something, we should prefer that. This commit adds an iso8160 to string method that supports any arbitrary std::chrono::duration object, which allows doing the full range of all of our integer types, and reduces the complexity (and presumably compile times) not pulling in a complex library. Despite the heavy templating, this only appears to add 108 bytes of compressed binary size to bmcweb. This is likely due to the decreased complexity compared to the boost variant (that likely pulls in boost::locale). (Ie 3 template instantiations of the simple one take about the same binary space as 1 complex instantiation). Tested: Unit tests pass (pretty good coverage here) Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I78200fb391b601eba8d2bfd2de0dd868e4390d6b
Diffstat (limited to 'http/http_server.hpp')
-rw-r--r--http/http_server.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/http/http_server.hpp b/http/http_server.hpp
index 050a3f000e..0d224a10d4 100644
--- a/http/http_server.hpp
+++ b/http/http_server.hpp
@@ -9,7 +9,6 @@
#include <boost/asio/ssl/context.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/beast/ssl/ssl_stream.hpp>
-#include <boost/date_time/posix_time/posix_time.hpp>
#include <ssl_key_handler.hpp>
#include <atomic>