Simple template system for C++