Angus Leeming <[EMAIL PROTECTED]> writes:
| Lars Gullik Bj�nnes wrote:
>> | Why the hell is this needed? The graphics stuff knows absolutely
>> | NOTHING about Paragraphs.
>>>
>> | Lars, could you find out WHY these are needed please?
>>
>> Becuse this is with safe_iterators and they need more info than
>> regular iterators.
>>
>> So I know why.
>>
>> And I think that we should be able to compile with g++ debug-mode.
>
| (I'm just asking for information, not telling you not to this.) What
| are safe-iterators and why does a Buffer::safe_iterator need to know
| about a Paragraph?
This is the error:
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./.. -I../../boost
-I/usr/X11R6/include -g -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -O3
--param max-inline-insns-single=100 --param max-inline-insns-auto=100
-fno-exceptions -W -Wall -MT PreviewLoader.lo -MD -MP -MF
.deps/PreviewLoader.Tpo -c PreviewLoader.C
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/bits/stl_list.h:
In instantiation of `__gnu_norm::_List_node<Paragraph>':
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/bits/stl_list.h:574:
instantiated from `__gnu_norm::_List_iterator<_Tp, _Tp&, _Tp*>
__gnu_norm::list<_Tp, _Alloc>::begin() [with _Tp = Paragraph, _Alloc =
std::allocator<Paragraph>]'
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/debug/list:118:
instantiated from `__gnu_debug::_Safe_iterator<typename
__gnu_norm::list<_Tp, _Alloc>::iterator, __gnu_debug_def::list<_Tp,
_Allocator> > __gnu_debug_def::list<_Tp, _Allocator>::begin() [with
_Tp = Paragraph, _Allocator = std::allocator<Paragraph>]'
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/debug/safe_iterator.h:377:
instantiated from `bool __gnu_debug::_Safe_iterator<_Iterator,
_Sequence>::_M_is_begin() const [with _Iterator =
__gnu_norm::_List_iterator<Paragraph, Paragraph&, Paragraph*>,
_Sequence = __gnu_debug_def::list<Paragraph, std::allocator<Paragraph>
>]'
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/debug/formatter.h:227:
instantiated from
`__gnu_debug::_Error_formatter::_Parameter::_Parameter(const
__gnu_debug::_Safe_iterator<_Iterator, _Sequence>&, const char*,
__gnu_debug::_Error_formatter::_Is_iterator) [with _Iterator =
__gnu_norm::_List_iterator<Paragraph, Paragraph&, Paragraph*>,
_Sequence = __gnu_debug_def::list<Paragraph, std::allocator<Paragraph>
>]'
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/debug/formatter.h:314:
instantiated from `const __gnu_debug::_Error_formatter&
__gnu_debug::_Error_formatter::_M_iterator(const _Iterator&, const
char*) const [with _Iterator =
__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph,
Paragraph&, Paragraph*>, __gnu_debug_def::list<Paragraph,
std::allocator<Paragraph> > >]'
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/debug/safe_iterator.h:119:
instantiated from `__gnu_debug::_Safe_iterator<_Iterator,
_Sequence>::_Safe_iterator(const
__gnu_debug::_Safe_iterator<_Iterator, _Sequence>&) [with _Iterator =
__gnu_norm::_List_iterator<Paragraph, Paragraph&, Paragraph*>,
_Sequence = __gnu_debug_def::list<Paragraph, std::allocator<Paragraph>
>]'
PreviewLoader.C:594: instantiated from here
/opt/gcc34/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/bits/stl_list.h:84:
error: `__gnu_norm::_List_node<_Tp>::_M_data' has incomplete type
../../src/ParagraphList_fwd.h:18: error: forward declaration of
`struct Paragraph'
make: *** [PreviewLoader.lo] Error 1
--
Lgb