[Cppunit-cvs] cppunit2/include/cpptl config.h,1.2,1.3
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-15 08:12:30
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30106/include/cpptl Modified Files: config.h Log Message: * added CppUT::Type<> template to pass type around on older compiler. Index: config.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/config.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.h 22 Oct 2004 06:20:23 -0000 1.2 --- config.h 15 Nov 2004 08:12:20 -0000 1.3 *************** *** 22,25 **** --- 22,26 ---- // VC++ 7.1. Since it is not required to compile, we just pretend it's not available. # define CPPTL_NO_DEDUCED_TYPENAME + # define CPPTL_NO_TEMPLATE_PARTIAL_SPECIALIZATION # endif *************** *** 67,70 **** --- 68,81 ---- + namespace CppTL { + + template<class T> + struct Type + { + typedef T type; + }; + + } // namespace CppTL + #endif // CPPTL_CONFIG_H_INCLUDED |