hot fix：fix cpp template on mac version
Merge pull request #4202 from dabingnn/masterfix

[ci skip]hot fix：fix cpp template on mac version