default, foward to const char_t* manually.

This commit is contained in:
halx99 2019-11-28 02:39:36 +08:00
parent 40661ea9fa
commit 64a9248a77

View File

@ -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<typename _T> bool set_value(_T rhs);
template<typename _T> bool set_value(_T rhs) { return set_value<const char_t*>(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<typename _T> bool set(_T rhs);
template<typename _T> bool set(_T rhs) { return set<const char_t*>(rhs); }
bool set(float rhs, int precision);
bool set(double rhs, int precision);