boost invariant Eloss implementation