From 64a9248a7757c99ed2a0f4c966c1a17fb933ccb7 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 28 Nov 2019 02:39:36 +0800 Subject: [PATCH] default, foward to const char_t* manually. --- src/pugixml.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.hpp b/src/pugixml.hpp index c3d5641..525739a 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -406,7 +406,7 @@ namespace pugi // Set attribute name/value (returns false if attribute is empty or there is not enough memory) bool set_name(const char_t* rhs); - template bool set_value(_T rhs); + template bool set_value(_T rhs) { return set_value(rhs); } bool set_value(float rhs, int precision); bool set_value(double rhs, int precision); @@ -756,7 +756,7 @@ namespace pugi bool as_bool(bool def = false) const; // Set text (returns false if object is empty or there is not enough memory) - template bool set(_T rhs); + template bool set(_T rhs) { return set(rhs); } bool set(float rhs, int precision); bool set(double rhs, int precision);