Hacker News new | ask | show | jobs
by yuvi 5815 days ago
Were you using gcc?

I wouldn't be surprised if e.g. MSVC didn't perform that optimization since it doesn't have the pure function attribute.