From: Christopher B. <Chr...@no...> - 2007-09-18 22:50:28
|
Bill Spotz wrote: > or you can place %extend inline within the templated class definition, eg > > template<class ScalarType> class Value { > %extend Value { > void extendedMethod(ScalarType t) {} > } > }; Thanks Bill. I wasn't sure you were trying to answer my question, or someone else's, but it certainly helped! Enclosed is what I now have, and it works just great. Maybe something like this should be in the standard std_vector.i (though in plain C, I guess) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |