Re: TreeView::append_column_numeric() format?



>>So I would like to add another templated convenience method like this:
>>Gtk::TreeView::append_column_numeric(TreeModelColumn& model,
>> numeric_format);
>>
>>But what's the best way to specify the display format for the number? I'd
>>rather not use that nasty printf() style format. Does C++ have something
>>more suitable?
>>[...]
>>
>>
> So why not use STL manipulators: std::setfill(), std::setw(), std::hex,
> std::setprecision(),
> std::setbase() and so on?

Aren't these stream modifiers? Can you suggest an actual
append_column_numeric() method signature without using streams? Or another
alternative?

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]