On Mon, Mar 21, 2011 at 05:33:38PM +0300, Fokin Evgeny wrote: > I make simple code for demonstration this compile error. Look attached > files.
Can you please explain why this example is correct? > compileError.hxx:11:62: instantiated from here > /usr/include/c++/4.5/bits/stl_pair.h:77:11: error: ‘std::pair<_T1, > _T2>::second’ has incomplete type > compileError.hxx:3:8: error: forward declaration of ‘struct structure’ This errors looks correct to me. Where is "struct structure" properly declared _before_ the template definition? Bastian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org