boost 1.57 and modernize this formula