Loops and boost errors