[ create a new paste ] login | about

Link: http://codepad.org/u6ffbDXT    [ raw code | fork ]

C++, pasted on Dec 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- int.hpp	(revision 76201)
+++ int.hpp	(working copy)
@@ -207,10 +207,12 @@
         template <typename OutputIterator, typename Attribute>
         static bool insert_int(OutputIterator& sink, Attribute const& attr)
         {
+            Attribute a = traits::get_absolute_value(attr);
+            
             return sign_inserter::call(sink, traits::test_zero(attr)
                       , traits::test_negative(attr), force_sign) &&
                    int_inserter<Radix, CharEncoding, Tag>::call(sink
-                      , traits::get_absolute_value(attr));
+                      , a);
         }
 
     public:


Create a new paste based on this one


Comments: