Opened 19 years ago

Closed 19 years ago

#148 closed Bugs (Fixed)

format: exception thrown when triyng to truncate small str

Reported by: okuchuk Owned by: samuel_k
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

cout << format("%1$-30.30s") % "small str" << endl
throws an exception _M_check
Platform: linux
Compiler: gcc v 3.2

problems is in feed_args.hpp
patch submited


Change History (1)

comment:1 by samuel_k, 19 years ago

Status: assignedclosed
Logged In: YES 
user_id=545049

Thanks, patch commited. (with an unsigned cast on truncate_
to avoid signed/unsigned comparison warnings)
Note: See TracTickets for help on using tickets.