having trouble getting my code to compile because of an expected primary-sxpression from inside a static function inside of at_impl