Opened 20 years ago
Closed 19 years ago
#90 closed Bugs (Out of Date)
boost::format bug
Reported by: | mpolatov | Owned by: | samuel_k |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
1. Function boost::io::detail::maybe_throw_exception is defined in parsing.hpp so link error happended when you include file boost/format.hpp in two or more .cpp modules (inline specifier missed? :). 2. Why class basic_format has members operator<< ( std::basic_ostream<Ch, Tr>& , const basic_format& ); and string_t str() const; instead of just operator string_t() const; ? Every time you just want to build string and pass it to somewhere you need to write statement something like that: ( boost::format( "%1%..." % ... ) ).str() I believe it looks ugly... Having operator string_t() const; also eliminate operator<< ( std::basic_ostream<Ch, Tr>& , const basic_format& ); if I not mistaken. Best Regards, Misha
Note:
See TracTickets
for help on using tickets.