xcode C  and C++ templates