summaryrefslogtreecommitdiff
path: root/games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
commit26b4c8f71f91d22e081b27814782686edde0c90a (patch)
tree1c321c39372c25d8634e75b5c8e08edc676b296d /games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp
parentNew port: math/py-optuna: A hyperparameter optimization framework (diff)
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed With hat: portmgr
Diffstat (limited to 'games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp')
-rw-r--r--games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp b/games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp
new file mode 100644
index 000000000000..f3fd7b704651
--- /dev/null
+++ b/games/netpanzer/files/patch-src_Lib_optionmm_command__line.hpp
@@ -0,0 +1,17 @@
+--- src/Lib/optionmm/command_line.hpp.orig 2007-04-16 13:36:42 UTC
++++ src/Lib/optionmm/command_line.hpp
+@@ -212,7 +212,13 @@ struct toggle_value<bool>
+ {
+ x = !x;
+ }
+-#if defined(__GNUC__) && __GNUC__ >= 2
++
++#if defined(__clang__)
++ inline void operator()(std::__bit_reference<std::vector<bool> > x)
++ {
++ x.flip();
++ }
++#elif defined(__GNUC__) && __GNUC__ >= 2
+ inline void operator()(std::_Bit_reference x)
+ {
+ x.flip();