News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[r10226] no match for 'operator+'

Started by captain crunch, November 10, 2021, 10:29:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

captain crunch

Just for your attention:
$ make
Revision is 10226M
===> HOSTCXX gui/pakinstaller.cc
gui/pakinstaller.cc: In member function 'virtual bool pakinstaller_t::action_triggered(gui_action_creator_t*, value_t)':
gui/pakinstaller.cc:74:77: error: no match for 'operator+' (operand types are 'uint32' {aka 'unsigned int'} and 'vector_tpl<int>')
   74 | ("Install paks", paks.get_selections().get_count()+ obsolete_paks.get_selections(), true, false);
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |                               |
      |                                                 uint32 {aka unsigned int}       vector_tpl<int>


prissi

Thanks, apparently I deleted a get_count() while closing MSVC. Fixed in r10227