Re: TreeView::append_column_numeric() format?

pks timing com writes:
 > I'll quit spamming the list now :)

I lied!

about the conversion operators ... anything one would expect
to pass to std::transform() for example.

and by the time you employ the functor idea, you can give the
user the choice about the preferred syntax (which they'll
implement themselves if they care enough of course):

append_column(float_column, PrintfFormatter("%10.3f"))

const gint width = 10;
const gint sigdigs = 3;
append_column(float_column, OtherFormatter(width, sigdigs));

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