Yes. The non-capturing case is equivalent to a static function for both lambdas and GCC nested functions.