Added xml_text &&/|| operators for Borland C++
git-svn-id: http://pugixml.googlecode.com/svn/trunk@874 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
48391dbe8c
commit
43fac19d81
@ -4866,6 +4866,17 @@ namespace pugi
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
PUGI__FN bool operator&&(const xml_text& lhs, bool rhs)
|
||||
{
|
||||
return (bool)lhs && rhs;
|
||||
}
|
||||
|
||||
PUGI__FN bool operator||(const xml_text& lhs, bool rhs)
|
||||
{
|
||||
return (bool)lhs || rhs;
|
||||
}
|
||||
#endif
|
||||
|
||||
PUGI__FN xml_node_iterator::xml_node_iterator()
|
||||
{
|
||||
|
||||
@ -614,6 +614,12 @@ namespace pugi
|
||||
xml_text& operator=(bool rhs);
|
||||
};
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
// Borland C++ workaround
|
||||
bool PUGIXML_FUNCTION operator&&(const xml_text& lhs, bool rhs);
|
||||
bool PUGIXML_FUNCTION operator||(const xml_text& lhs, bool rhs);
|
||||
#endif
|
||||
|
||||
// Child node iterator (a bidirectional iterator over a collection of xml_node)
|
||||
class PUGIXML_CLASS xml_node_iterator
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user