Hi Abdel,

Thanks for the clarification.

<< What is the problem exactly? Maybe we can help... >>

I appreciate the offer.  I've been running into a problem with the way
that I'm instantiating a vector in TocItem.  The code will compile when
configured with cmake, but refuses to compile when configured with
autotools.

The two solutions I was exploring were:

1) Use a more relaxed class (e.g., QVector)
2) Change the way I'm instantiating the vector and instead use a pointer

They're both probably pretty trivial changes, so I tried QVector first
and ran into the inability to include the header file.  I'm working on
option number 2 and changing everything over.

The newly modified code now looks like:

TocBackend.h

...

std::vector<TocItem>* summary_notes;

...

TocBackend.cpp

...

TocItem::TocItem(DocIterator const & dit, int d, docstring const & s,
docstring const & t) : dit_(dit), depth_(d), str_(s), summary_notes(new
std::vector<TocItem>), tooltip_(t)
{
}

...

Is this a better solution than simply declaring:

std::vector<TocItem> summary_notes;

in the header?  (I assume that this will make autotools happy, though I
haven't tested it yet.)

Cheers,

Rob

Reply via email to