Add example from boost docs