MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001278VCMIOtherpublic2013-05-29 07:332014-05-30 17:43
Reportero01eg 
Assigned ToIvan 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformAMD64OSLinuxOS VersionGentoo
Product Version 
Target VersionFixed in Version 
Summary0001278: Cann't compile vcmi [r3391]
Description$ LANG="en_US.UTF-8" idle.sh make
[ 0%] Building CXX object lib/CMakeFiles/vcmi.dir/CGameState.cpp.o
/mnt/another/tmp/vcmi/lib/CGameState.cpp: In member function ‘int CGameState::pickHero(PlayerColor)’:
/mnt/another/tmp/vcmi/lib/CGameState.cpp:486:3: error: no matching function for call to ‘random_shuffle(std::vector<HeroTypeID>&, CGameState::pickHero(PlayerColor)::<lambda(size_t)>)’
/mnt/another/tmp/vcmi/lib/CGameState.cpp:486:3: note: candidates are:
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:57:33: note: const RandomAccessRange& boost::range::random_shuffle(const RandomAccessRange&, Generator&) [with RandomAccessRange = std::vector<HeroTypeID>, Generator = CGameState::pickHero(PlayerColor)::<lambda(size_t)>]
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:57:33: note: no known conversion for argument 2 from ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>’ to ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>&’
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:48:27: note: RandomAccessRange& boost::range::random_shuffle(RandomAccessRange&, Generator&) [with RandomAccessRange = std::vector<HeroTypeID>, Generator = CGameState::pickHero(PlayerColor)::<lambda(size_t)>]
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:48:27: note: no known conversion for argument 2 from ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>’ to ‘CGameState::pickHero(PlayerColor)::<lambda(size_t)>&’
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:39:33: note: template<class RandomAccessRange> const RandomAccessRange& boost::range::random_shuffle(const RandomAccessRange&)
/usr/include/boost-1_49/boost/range/algorithm/random_shuffle.hpp:30:27: note: template<class RandomAccessRange> RandomAccessRange& boost::range::random_shuffle(RandomAccessRange&)
/usr/include/boost-1_49/boost/system/error_code.hpp: At global scope:
/usr/include/boost-1_49/boost/system/error_code.hpp:214:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:215:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:216:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
make[2]: *** [lib/CMakeFiles/vcmi.dir/CGameState.cpp.o] Error 1
make[1]: *** [lib/CMakeFiles/vcmi.dir/all] Error 2
make: *** [all] Error 2
Steps To Reproduce1. Update the repository to 3391 revision.
2. Try to compile.
Additional Informationgcc - 4.6.4
boost - 1.49
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003584)
Ivan (developer)
2013-05-29 07:40

Got this too, will fix.
(0003586)
Ivan (developer)
2013-05-29 08:16

Fixed, rev 3392

- Issue History
Date Modified Username Field Change
2013-05-29 07:33 o01eg New Issue
2013-05-29 07:40 Ivan Note Added: 0003584
2013-05-29 07:40 Ivan Assigned To => Ivan
2013-05-29 07:40 Ivan Status new => assigned
2013-05-29 08:16 Ivan Note Added: 0003586
2013-05-29 08:16 Ivan Status assigned => resolved
2013-05-29 08:16 Ivan Resolution open => fixed
2014-05-30 17:43 beegee Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean