mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
games/glob2: unbreak with boost 1.69
src/AIEcho.cpp:4390:9: error: no viable conversion from returned value of type 'boost::logic::tribool' to function return type 'bool' return is_end!=rhs.is_end || team!=rhs.team || building_type!=rhs.building_type || level!=rhs.level || construction_site!=rhs.construction_site; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PR: 232525
This commit is contained in:
parent
b013832e3d
commit
2fd0a6aa5e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482791
17
games/glob2/files/patch-boost-1.69
Normal file
17
games/glob2/files/patch-boost-1.69
Normal file
@ -0,0 +1,17 @@
|
||||
After https://github.com/boostorg/logic/commit/23cd89d4c80f build fails:
|
||||
|
||||
src/AIEcho.cpp:4390:9: error: no viable conversion from returned value of type 'boost::logic::tribool' to function return type 'bool'
|
||||
return is_end!=rhs.is_end || team!=rhs.team || building_type!=rhs.building_type || level!=rhs.level || construction_site!=rhs.construction_site;
|
||||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
--- src/AIEcho.cpp.orig 2009-08-29 20:39:05 UTC
|
||||
+++ src/AIEcho.cpp
|
||||
@@ -4387,7 +4387,7 @@ bool enemy_building_iterator::operator!=(const enemy_b
|
||||
{
|
||||
if(is_end && rhs.is_end)
|
||||
return false;
|
||||
- return is_end!=rhs.is_end || team!=rhs.team || building_type!=rhs.building_type || level!=rhs.level || construction_site!=rhs.construction_site;
|
||||
+ return bool(is_end!=rhs.is_end || team!=rhs.team || building_type!=rhs.building_type || level!=rhs.level || construction_site!=rhs.construction_site);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user