From 9a0753d7f8a52df224a3ab1143427709f11f562b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 22 Oct 2016 18:18:02 -0700 Subject: [PATCH] ircd::js: Relax value construction from host types. --- include/ircd/js/value.h | 10 +++++----- include/ircd/stdinc.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/ircd/js/value.h b/include/ircd/js/value.h index 7f1171936..9db130a0c 100644 --- a/include/ircd/js/value.h +++ b/include/ircd/js/value.h @@ -45,11 +45,11 @@ struct value value(const char *const &); explicit value(const std::string &); - explicit value(const nullptr_t &); - explicit value(const double &); - explicit value(const float &); - explicit value(const int32_t &); - explicit value(const bool &); + value(const nullptr_t &); + value(const double &); + value(const float &); + value(const int32_t &); + value(const bool &); value(const jsid &); value(JSObject &); diff --git a/include/ircd/stdinc.h b/include/ircd/stdinc.h index b9197de29..91ddbbe8b 100644 --- a/include/ircd/stdinc.h +++ b/include/ircd/stdinc.h @@ -41,6 +41,7 @@ namespace asio { namespace ircd { + using std::nullptr_t; using std::begin; using std::end; using std::get;