diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:46:07 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-25 21:46:07 +0000 |
commit | cd9bc5fa836fdf196dc65f7f75631f80849eed1e (patch) | |
tree | c9c055cd9da166c04d6113439e83f9966fe2b696 /src/pugixpath.cpp | |
parent | 1a1cc6f7f4f1591f87be3bab4cb8886e145dd333 (diff) |
Added support for Sun C++ compiler
git-svn-id: http://pugixml.googlecode.com/svn/trunk@452 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r-- | src/pugixpath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index d11a7ca..d409655 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -768,7 +768,7 @@ namespace pugi {
if (begin == end) return;
- size_t count = std::distance(begin, end);
+ size_t count = end - begin;
size_t size = m_end - m_begin;
size_t capacity = m_eos - m_begin;
|