resolve cpp template

cpp template work well on IOS