[boost] possible bug introduced in boost function