Alternative fix for const functions with aggregate return