Comment Comment by cowlevel If you make it a non-const reference the compiler won't let you pass a result of another function call such as sum(get_daily_prices()) parent cowlevel 1 day ago