g++ complains on systemclock.cpp:70:23:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/usr/include -g -O2 -Icmd
-Iui -Ihwtimer -c systemclock.cpp -o .libs/systemclock.o
systemclock.cpp: In instantiation of ‘void MinHeap<Key,
Value>::Insert(Key, Value) [with Key = long long int; Value =
SimulationMember*]’:
systemclock.cpp:135:40: required from here
systemclock.cpp:70:23: error: ‘resize’ was not declared in this scope,
and no declarations were found by argument-dependent lookup at the point
of instantiation [-fpermissive]
resize(this->size()+1);
^
systemclock.cpp:70:23: note: declarations in dependent base
‘std::vector<std::pair<long long int, SimulationMember*>,
std::allocator<std::pair<long long int, SimulationMember*> > >’ are not
found by unqualified lookup
systemclock.cpp:70:23: note: use ‘this->resize’ instead
make[3]: *** [systemclock.lo] Error 1
make[3]: Leaving directory `/tmp/simulavr-1.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/simulavr-1.0.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/simulavr-1.0.0/src'
make: *** [all-recursive] Error 1
Fixing line 70 to
this->resize(this->size()+1);
makes the error disappear, but I dont't know, if that ist correct.
Albrecht
_______________________________________________
Simulavr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/simulavr-devel