diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-02 13:18:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-02 13:18:22 +0000 |
commit | 2fcafe99c534842ed34efb6794458c6b8a8838ed (patch) | |
tree | 215853c87b67a7ea0fb265589196692c5ef1429e /boost/boost.gcc47679.patch | |
parent | dynamic_bitset subdir wasn't delivered (diff) | |
download | core-2fcafe99c534842ed34efb6794458c6b8a8838ed.tar.gz core-2fcafe99c534842ed34efb6794458c6b8a8838ed.zip |
silence warning with a specialization
Diffstat (limited to 'boost/boost.gcc47679.patch')
-rw-r--r-- | boost/boost.gcc47679.patch | 23 |
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) + { |