replace cassert by boost asserts