![]() |
【转帖】odstringformat90 issue
odstring::format() issue
odstring::format() issue hi, can you make a version of odstring with member format, that returns a reference to the string: odstring& odstring::format(...); thus when a function needs a string parameter and time is not critical, one can simply say: func_that_need_string( odstring().format(...) ); instead of: odstring str; str.format(...); func_that_need_string( str ); the simpler, the better.... thanks regards chudomir best regards chudomir i think it's good idea. and other functions like trimleft etc. too. btw, i think that performance will not suffer if odstring& is returned instead of void (one more mov command) sergey slezkin this would be great if you do it! also no existing code of your users will be changed since of ignoring the returned value. thanks regards chudomir best regards chudomir |
所有的时间均为北京时间。 现在的时间是 11:05 AM. |