Cloned from https://bitbucket.org/stalei/artemiscpp/src