Sort of lazy generators implemented using boost