IRC logs for #openttd.dev on OFTC at 2014-01-24
⏴ go to previous day
00:54:18 *** TheZonta has left #openttd.dev
09:50:01 *** adf88 has joined #openttd.dev
09:50:01 *** ChanServ sets mode: +v adf88
11:59:46 *** adf89 has joined #openttd.dev
13:22:21 *** adf88 has joined #openttd.dev
13:22:21 *** ChanServ sets mode: +v adf88
17:55:57 *** frosch123 has joined #openttd.dev
17:55:57 *** ChanServ sets mode: +v frosch123
19:20:55 *** Supercheese has joined #openttd.dev
19:20:55 *** ChanServ sets mode: +v Supercheese
21:02:53 <frosch123> splice instead of pop and push?
21:03:46 <frosch123> schedule.splice(schedule.end(), schedule, schedule.begin())
21:05:01 <frosch123> fails if the schedule has only one element though
21:05:26 <frosch123> so would need some if for that
21:06:01 <frosch123> hmm, maybe it even works, technically there is no overlapping
21:08:11 <fonsinchen> How would splice do what I'm trying to achieve there?
21:08:24 <frosch123> you are moving the first element to the end, right?
21:08:47 <frosch123> push/pop would delete and new a list element, splice does not
21:34:29 <fonsinchen> splice doesn't invalidate any iterators
21:34:57 <fonsinchen> Thus it should work with only one element.
continue to next day ⏵