From: <mk...@us...> - 2003-07-18 19:33:30
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData In directory sc8-pr-cvs1:/tmp/cvs-serv8432 Modified Files: LUT.h LUT.i Log Message: no lut for old msvc Index: LUT.h =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/LUT.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LUT.h 18 Jul 2003 10:14:48 -0000 1.3 --- LUT.h 18 Jul 2003 19:33:27 -0000 1.4 *************** *** 20,23 **** --- 20,30 ---- + #if defined(_MSC_VER) && (_MSC_VER <= 1300) + // old versions of msvc can't do partial template specialization + #define __SIMDATA_NO_LUT__ + #define __SIMDATA_LUT_H__ + #endif + + #ifndef __SIMDATA_LUT_H__ #define __SIMDATA_LUT_H__ Index: LUT.i =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/LUT.i,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LUT.i 17 Jul 2003 10:12:40 -0000 1.1 --- LUT.i 18 Jul 2003 19:33:27 -0000 1.2 *************** *** 4,7 **** --- 4,9 ---- %} + #ifndef __NO_LUT__ + %include "std_vector.i" %include "SimData/ns-simdata.h" *************** *** 120,142 **** %template(Table2) LUT<2,float>; %template(Table3) LUT<3,float>; - %template(Table4) LUT<4,float>; - /* - %rename(__getitem__) LUT<1,float>::getValue(std::vector<float> const &) const; - %rename(__getitem__) Table1::getValue(std::vector<float> const &) const; - %rename(__getitem__) Table2::getValue(std::vector<float> const &) const; - %rename(__getitem__) Table3::getValue(std::vector<float> const &) const; - %rename(__getitem__) Table4::getValue(std::vector<float> const &) const; - %rename(__repr__) LUT<1,float>::asString() const; - %rename(__repr__) Table1::asString() const; - %rename(__repr__) Table2::asString() const; - %rename(__repr__) Table3::asString() const; - %rename(__repr__) Table4::asString() const; - */ - %exception; NAMESPACE_END // simdata --- 122,132 ---- %template(Table2) LUT<2,float>; %template(Table3) LUT<3,float>; %exception; NAMESPACE_END // simdata + + #endif // __NO_LUT__ |