diff options
| -rw-r--r-- | src/pugixml.cpp | 11 | ||||
| -rw-r--r-- | src/pugixml.hpp | 6 | 
2 files changed, 17 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 28be942..105e056 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -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()  	{ diff --git a/src/pugixml.hpp b/src/pugixml.hpp index db858d6..53f4b63 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -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  	{  | 
