diff --git a/src/pugixml.hpp b/src/pugixml.hpp index c4d44e6..103e99c 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -651,7 +651,7 @@ namespace pugi xml_object_range attributes() const; // Get node offset in parsed file/string (in char_t units) for debugging purposes - ptrdiff_t offset_debug() const; + std::ptrdiff_t offset_debug() const; // Get hash value (unique for handles to the same object) size_t hash_value() const; @@ -768,7 +768,7 @@ namespace pugi public: // Iterator traits - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef xml_node value_type; typedef xml_node* pointer; typedef xml_node& reference; @@ -810,7 +810,7 @@ namespace pugi public: // Iterator traits - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef xml_attribute value_type; typedef xml_attribute* pointer; typedef xml_attribute& reference; @@ -846,7 +846,7 @@ namespace pugi public: // Iterator traits - typedef ptrdiff_t difference_type; + typedef std::ptrdiff_t difference_type; typedef xml_node value_type; typedef xml_node* pointer; typedef xml_node& reference; @@ -942,7 +942,7 @@ namespace pugi xml_parse_status status; // Last parsed offset (in char_t units from start of input data) - ptrdiff_t offset; + std::ptrdiff_t offset; // Source document encoding xml_encoding encoding; @@ -1047,7 +1047,7 @@ namespace pugi const char* error; // Last parsed offset (in char_t units from string start) - ptrdiff_t offset; + std::ptrdiff_t offset; // Default constructor, initializes object to failed state xpath_parse_result();