Add a couple of more overloads for floats
This commit is contained in:
parent
4ae1940065
commit
53525a037b
@ -4553,6 +4553,12 @@ namespace pugi
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PUGI__FN xml_attribute& xml_attribute::operator=(float rhs)
|
||||||
|
{
|
||||||
|
set_value(rhs);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
PUGI__FN xml_attribute& xml_attribute::operator=(bool rhs)
|
PUGI__FN xml_attribute& xml_attribute::operator=(bool rhs)
|
||||||
{
|
{
|
||||||
set_value(rhs);
|
set_value(rhs);
|
||||||
@ -5679,6 +5685,12 @@ namespace pugi
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PUGI__FN xml_text& xml_text::operator=(float rhs)
|
||||||
|
{
|
||||||
|
set(rhs);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
PUGI__FN xml_text& xml_text::operator=(bool rhs)
|
PUGI__FN xml_text& xml_text::operator=(bool rhs)
|
||||||
{
|
{
|
||||||
set(rhs);
|
set(rhs);
|
||||||
|
|||||||
@ -365,6 +365,7 @@ namespace pugi
|
|||||||
xml_attribute& operator=(int rhs);
|
xml_attribute& operator=(int rhs);
|
||||||
xml_attribute& operator=(unsigned int rhs);
|
xml_attribute& operator=(unsigned int rhs);
|
||||||
xml_attribute& operator=(double rhs);
|
xml_attribute& operator=(double rhs);
|
||||||
|
xml_attribute& operator=(float rhs);
|
||||||
xml_attribute& operator=(bool rhs);
|
xml_attribute& operator=(bool rhs);
|
||||||
|
|
||||||
#ifdef PUGIXML_HAS_LONG_LONG
|
#ifdef PUGIXML_HAS_LONG_LONG
|
||||||
@ -708,6 +709,7 @@ namespace pugi
|
|||||||
xml_text& operator=(int rhs);
|
xml_text& operator=(int rhs);
|
||||||
xml_text& operator=(unsigned int rhs);
|
xml_text& operator=(unsigned int rhs);
|
||||||
xml_text& operator=(double rhs);
|
xml_text& operator=(double rhs);
|
||||||
|
xml_text& operator=(float rhs);
|
||||||
xml_text& operator=(bool rhs);
|
xml_text& operator=(bool rhs);
|
||||||
|
|
||||||
#ifdef PUGIXML_HAS_LONG_LONG
|
#ifdef PUGIXML_HAS_LONG_LONG
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user