fixed use of deprecated boost function