[boost] Binding function call to an assignment