ECToo / starshatter-open

Automatically exported from code.google.com/p/starshatter-open
1 stars 0 forks source link

Compilation broken for main Starshatter exe #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
2>d:\src\starshattersvn\foundationex\list.inl(247): error C2593: 'operator ==' 
is ambiguous
2>          d:\src\starshattersvn\ngenex\physical.h(39): could be 'int 
Physical::operator ==(const Physical &) const'
2>          d:\src\starshattersvn\stars45\simobject.h(85): or       'int 
SimObserver::operator ==(const SimObserver &) const'
2>          while trying to match the argument list '(Shot, const Shot)'
2>          d:\src\starshattersvn\foundationex\list.inl(244) : while compiling 
class template member function 'bool List<T>::contains(const T *) const'
2>          with
2>          [
2>              T=Shot
2>          ]
2>          d:\src\starshattersvn\stars45\ship.h(502) : see reference to class 
template instantiation 'List<T>' being compiled
2>          with
2>          [
2>              T=Shot
2>          ]

Original issue reported on code.google.com by FWoltermann@gmail.com on 8 Dec 2011 at 6:17

GoogleCodeExporter commented 9 years ago
Maybe change homebrew list template to std::vector?

Original comment by FWoltermann@gmail.com on 8 Dec 2011 at 7:19

GoogleCodeExporter commented 9 years ago

Original comment by FWoltermann@gmail.com on 10 Dec 2011 at 12:01