Thanks to @qqiangwu for pointing out the possible bug: https://github.com/biicode/boost/issues/10 Submitting as a separated issue here.