add support for unsigned int

This commit is contained in:
Tobias Prochus 2017-03-20 21:07:11 +01:00
parent 0fde1cf94c
commit 83576dac95
2 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class lambda_t {
} }
using node = boost::make_recursive_variant< using node = boost::make_recursive_variant<
std::nullptr_t, std::string, int, double, bool, std::nullptr_t, std::string, int, unsigned int, double, bool,
internal::lambda_t<boost::recursive_variant_>, internal::lambda_t<boost::recursive_variant_>,
std::shared_ptr<internal::object_t<boost::recursive_variant_>>, std::shared_ptr<internal::object_t<boost::recursive_variant_>>,
std::map<const std::string, boost::recursive_variant_>, std::map<const std::string, boost::recursive_variant_>,

View File

@ -26,6 +26,10 @@ class render_node: public boost::static_visitor<std::string> {
return std::to_string(value); return std::to_string(value);
} }
std::string operator()(const unsigned int& value) const {
return std::to_string(value);
}
std::string operator()(const double& value) const { std::string operator()(const double& value) const {
std::stringstream ss; std::stringstream ss;
ss << value; ss << value;