[ create a new paste ] login | about

Link: http://codepad.org/C6O2A8H9    [ raw code | output | fork ]

C++, pasted on Jun 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <vector>
using namespace std;

struct Move
{
    int src;
    int dst;
};

struct MoveTree
{
    Move move;
    std::vector<MoveTree> variation;
};

int main()
{
    MoveTree tree;
}


Output:
1
2
3
4
5
6
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/boost_concept_check.h: In instantiation of '__gnu_cxx::_SGIAssignableConcept<MoveTree>':
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:162:   instantiated from '__gnu_norm::vector<MoveTree, std::allocator<MoveTree> >'
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/debug/vector:46:   instantiated from '__gnu_debug_def::vector<MoveTree, std::allocator<MoveTree> >'
t.cpp:14:   instantiated from here
Line 215: error: '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a' has incomplete type
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: