[boost] invalid access to stack memory?