summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-02 13:18:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-02 13:18:22 +0000
commit2fcafe99c534842ed34efb6794458c6b8a8838ed (patch)
tree215853c87b67a7ea0fb265589196692c5ef1429e /boost
parentdeb8773d3aedcafb32b82e3bc4a1451900120746 (diff)
silence warning with a specialization
Diffstat (limited to 'boost')
-rw-r--r--boost/boost.gcc47679.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/boost/boost.gcc47679.patch b/boost/boost.gcc47679.patch
index 961234673f40..1c804aaa998c 100644
--- a/boost/boost.gcc47679.patch
+++ b/boost/boost.gcc47679.patch
@@ -13,3 +13,26 @@
}
template<class OptionalPointee>
+--- misc/boost_1_44_0/boost/spirit/home/classic/core/primitives/impl/numerics.ipp 2011-03-02 12:22:47.222870106 +0000
++++ misc/build/boost_1_44_0/boost/spirit/home/classic/core/primitives/impl/numerics.ipp 2011-03-02 12:22:47.222870106 +0000
+@@ -219,6 +219,20 @@
+ }
+ };
+
++ template <int Radix>
++ struct negative_accumulate<unsigned char, Radix>
++ {
++ // Use this accumulator if number is negative
++ static bool add(unsigned char& n, unsigned digit)
++ {
++ n *= Radix;
++ if (n < digit)
++ return false;
++ n -= digit;
++ return true;
++ }
++ };
++
+ template <int MaxDigits>
+ inline bool allow_more_digits(std::size_t i)
+ {