Ticket #7435: format-imbue.diff

File format-imbue.diff, 855 bytes (added by Franz Detro <franz.detro@…>, 10 years ago)
  • boost/format/feed_args.hpp

    From ea100b44a3a6a8a67bce9e403e3f4f0b34e6e44c Mon Sep 17 00:00:00 2001
    From: Franz Detro <franz.detro@native-instruments.de>
    Date: Tue, 4 Sep 2012 12:15:07 +0200
    Subject: [PATCH] imbue fix in boost format
    
    ---
     boost/format/feed_args.hpp | 7 +++++++
     1 file changed, 7 insertions(+)
    
    diff --git a/boost/format/feed_args.hpp b/boost/format/feed_args.hpp
    index 53243dc..3bb3ff5 100644
    a b namespace detail {  
    140140        typedef typename string_type::size_type size_type;
    141141
    142142        basic_oaltstringstream<Ch, Tr, Alloc>  oss( &buf);
     143       
     144        if (loc_p)
     145        {
     146            oss.imbue (*loc_p);
     147        }
     148     
     149
    143150        specs.fmtstate_.apply_on(oss, loc_p);
    144151
    145152        // the stream format state can be modified by manipulators in the argument :