Fix compilation error with clang's libc++

The bug is probably fixed for clang 3.7.1 or 3.8.0
This commit is contained in:
Jean-Marc Lasgouttes 2016-01-08 09:51:32 +01:00
parent 39717adfda
commit 626f8d4448

View File

@ -127,6 +127,9 @@ private:
class Toc : public std::vector<TocItem>
{
public:
// This is needed to work around a libc++ bug
// https://llvm.org/bugs/show_bug.cgi?id=24137
Toc() {}
typedef std::vector<TocItem>::const_iterator const_iterator;
typedef std::vector<TocItem>::iterator iterator;
const_iterator item(DocIterator const & dit) const;