y2s82 / goblin_camp

Dwarf Fortress clone, revisited
GNU General Public License v3.0
37 stars 12 forks source link

boost::next #128

Closed Andres6936 closed 4 years ago

Andres6936 commented 4 years ago

Compile:

/usr/local/include/boost/mpl/next_prior.hpp:29:8: note:   ‘boost::mpl::next’
   29 | struct next
      |        ^~~~
/home/andres6936/CLionProjects/goblin_camp/src/Camp.cpp:257:35: error: ‘next’ is not a member of ‘boost’
  257 |     Coordinate location = *boost::next(waterZones.begin(), Random::Generate(waterZones.size()-1));
      |                                   ^~~~
/home/andres6936/CLionProjects/goblin_camp/src/Camp.cpp:257:35: note: suggested alternatives:
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
                 from /usr/include/c++/9/bits/stl_tree.h:63,
                 from /usr/include/c++/9/set:60,
                 from /usr/local/include/boost/serialization/set.hpp:19,
                 from /home/andres6936/CLionProjects/goblin_camp/src/Camp.cpp:18:

gcc version 9.2.1 20191102 (Ubuntu 9.2.1-17ubuntu1~16.04)

Boost: 1.71