Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 11th, 2013  |  syntax: None  |  size: 1.85 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i
  2. index 84f48b0..41c3fe7 100644
  3. --- a/gruel/src/swig/pmt_swig.i
  4. +++ b/gruel/src/swig/pmt_swig.i
  5. @@ -43,20 +43,20 @@
  6.  %include <stl.i>
  7.  
  8.  namespace std {
  9. -  %template()    vector<unsigned char>;
  10. -  %template()    vector<uint8_t>;
  11. -  %template()    vector<char>;
  12. -  %template()    vector<int8_t>;
  13. -  %template()    vector<short>;
  14. -  %template()    vector<uint16_t>;
  15. -  %template()    vector<int16_t>;
  16. -  %template()    vector<int>;
  17. -  %template()    vector<int32_t>;
  18. -  %template()    vector<uint32_t>;
  19. -  %template()    vector<float>;
  20. -  %template()    vector<double>;
  21. -  %template()    vector< std::complex<float> >;
  22. -  %template()    vector< std::complex<double> >;
  23. +  //%template(pmt_butts_std_vector_unsigned_char)        vector<unsigned char>; //redundant
  24. +  %template(pmt_butts_std_vector_uint8)          vector<uint8_t>;
  25. +  %template(pmt_butts_std_vector_char)   vector<char>; //not redundant - char != uchar != schar
  26. +  %template(pmt_butts_std_vector_int8)   vector<int8_t>;
  27. +  //%template(pmt_butts_std_vector_short)        vector<short>; //redundant
  28. +  %template(pmt_butts_std_vector_uint16)         vector<uint16_t>;
  29. +  %template(pmt_butts_std_vector_int16)          vector<int16_t>;
  30. +  //%template(pmt_butts_std_vector_int)          vector<int>; //redundant
  31. +  %template(pmt_butts_std_vector_int32)          vector<int32_t>;
  32. +  %template(pmt_butts_std_vector_uint32)         vector<uint32_t>;
  33. +  %template(pmt_butts_std_vector_float)          vector<float>;
  34. +  %template(pmt_butts_std_vector_double)         vector<double>;
  35. +  %template(pmt_butts_std_vector_complex_float)          vector< std::complex<float> >;
  36. +  %template(pmt_butts_std_vector_complex_double)         vector< std::complex<double> >;
  37.  };
  38.  
  39.  ////////////////////////////////////////////////////////////////////////
clone this paste RAW Paste Data