Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 10.58 KB | None | 0 0
  1. diff --git a/include/OpenEXR/ImathMatrix.h b/include/OpenEXR/ImathMatrix.h
  2. index 3e96c2fd..00fbfbb6 100644
  3. --- a/include/OpenEXR/ImathMatrix.h
  4. +++ b/include/OpenEXR/ImathMatrix.h
  5. @@ -262,17 +262,13 @@ template <class T> class Matrix33
  6.      //
  7.      //------------------------------------------------------------
  8.  
  9. -    const Matrix33 &    invert (bool singExc = false)
  10. -                        throw (IEX_NAMESPACE::MathExc);
  11. +    const Matrix33 &    invert (bool singExc = false);
  12.  
  13. -    Matrix33<T>         inverse (bool singExc = false) const
  14. -                        throw (IEX_NAMESPACE::MathExc);
  15. +    Matrix33<T>         inverse (bool singExc = false) const;
  16.  
  17. -    const Matrix33 &    gjInvert (bool singExc = false)
  18. -                        throw (IEX_NAMESPACE::MathExc);
  19. +    const Matrix33 &    gjInvert (bool singExc = false);
  20.  
  21. -    Matrix33<T>         gjInverse (bool singExc = false) const
  22. -                        throw (IEX_NAMESPACE::MathExc);
  23. +    Matrix33<T>         gjInverse (bool singExc = false) const;
  24.  
  25.  
  26.      //------------------------------------------------
  27. @@ -636,17 +632,13 @@ template <class T> class Matrix44
  28.      //
  29.      //------------------------------------------------------------
  30.  
  31. -    const Matrix44 &    invert (bool singExc = false)
  32. -                        throw (IEX_NAMESPACE::MathExc);
  33. +    const Matrix44 &    invert (bool singExc = false);
  34.  
  35. -    Matrix44<T>         inverse (bool singExc = false) const
  36. -                        throw (IEX_NAMESPACE::MathExc);
  37. +    Matrix44<T>         inverse (bool singExc = false) const;
  38.  
  39. -    const Matrix44 &    gjInvert (bool singExc = false)
  40. -                        throw (IEX_NAMESPACE::MathExc);
  41. +    const Matrix44 &    gjInvert (bool singExc = false);
  42.  
  43. -    Matrix44<T>         gjInverse (bool singExc = false) const
  44. -                        throw (IEX_NAMESPACE::MathExc);
  45. +    Matrix44<T>         gjInverse (bool singExc = false) const;
  46.  
  47.  
  48.      //------------------------------------------------
  49. @@ -1430,7 +1422,7 @@ Matrix33<T>::transposed () const
  50.  
  51.  template <class T>
  52.  const Matrix33<T> &
  53. -Matrix33<T>::gjInvert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  54. +Matrix33<T>::gjInvert (bool singExc)
  55.  {
  56.      *this = gjInverse (singExc);
  57.      return *this;
  58. @@ -1438,7 +1430,7 @@ Matrix33<T>::gjInvert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  59.  
  60.  template <class T>
  61.  Matrix33<T>
  62. -Matrix33<T>::gjInverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  63. +Matrix33<T>::gjInverse (bool singExc) const
  64.  {
  65.      int i, j, k;
  66.      Matrix33 s;
  67. @@ -1542,7 +1534,7 @@ Matrix33<T>::gjInverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  68.  
  69.  template <class T>
  70.  const Matrix33<T> &
  71. -Matrix33<T>::invert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  72. +Matrix33<T>::invert (bool singExc)
  73.  {
  74.      *this = inverse (singExc);
  75.      return *this;
  76. @@ -1550,7 +1542,7 @@ Matrix33<T>::invert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  77.  
  78.  template <class T>
  79.  Matrix33<T>
  80. -Matrix33<T>::inverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  81. +Matrix33<T>::inverse (bool singExc) const
  82.  {
  83.      if (x[0][2] != 0 || x[1][2] != 0 || x[2][2] != 1)
  84.      {
  85. @@ -2699,7 +2691,7 @@ Matrix44<T>::transposed () const
  86.  
  87.  template <class T>
  88.  const Matrix44<T> &
  89. -Matrix44<T>::gjInvert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  90. +Matrix44<T>::gjInvert (bool singExc)
  91.  {
  92.      *this = gjInverse (singExc);
  93.      return *this;
  94. @@ -2707,7 +2699,7 @@ Matrix44<T>::gjInvert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  95.  
  96.  template <class T>
  97.  Matrix44<T>
  98. -Matrix44<T>::gjInverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  99. +Matrix44<T>::gjInverse (bool singExc) const
  100.  {
  101.      int i, j, k;
  102.      Matrix44 s;
  103. @@ -2811,7 +2803,7 @@ Matrix44<T>::gjInverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  104.  
  105.  template <class T>
  106.  const Matrix44<T> &
  107. -Matrix44<T>::invert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  108. +Matrix44<T>::invert (bool singExc)
  109.  {
  110.      *this = inverse (singExc);
  111.      return *this;
  112. @@ -2819,7 +2811,7 @@ Matrix44<T>::invert (bool singExc) throw (IEX_NAMESPACE::MathExc)
  113.  
  114.  template <class T>
  115.  Matrix44<T>
  116. -Matrix44<T>::inverse (bool singExc) const throw (IEX_NAMESPACE::MathExc)
  117. +Matrix44<T>::inverse (bool singExc) const
  118.  {
  119.      if (x[0][3] != 0 || x[1][3] != 0 || x[2][3] != 0 || x[3][3] != 1)
  120.          return gjInverse(singExc);
  121. diff --git a/include/OpenEXR/ImathVec.h b/include/OpenEXR/ImathVec.h
  122. index fb859ebd..6f4e82a3 100644
  123. --- a/include/OpenEXR/ImathVec.h
  124. +++ b/include/OpenEXR/ImathVec.h
  125. @@ -225,11 +225,11 @@ template <class T> class Vec2
  126.      T          length2 () const;
  127.  
  128.      const Vec2 &   normalize ();           // modifies *this
  129. -    const Vec2 &   normalizeExc () throw (IEX_NAMESPACE::MathExc);
  130. +    const Vec2 &   normalizeExc ();
  131.      const Vec2 &   normalizeNonNull ();
  132.  
  133.      Vec2<T>        normalized () const;    // does not modify *this
  134. -    Vec2<T>        normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  135. +    Vec2<T>        normalizedExc () const;
  136.      Vec2<T>        normalizedNonNull () const;
  137.  
  138.  
  139. @@ -437,11 +437,11 @@ template <class T> class Vec3
  140.      T          length2 () const;
  141.  
  142.      const Vec3 &   normalize ();           // modifies *this
  143. -    const Vec3 &   normalizeExc () throw (IEX_NAMESPACE::MathExc);
  144. +    const Vec3 &   normalizeExc ();
  145.      const Vec3 &   normalizeNonNull ();
  146.  
  147.      Vec3<T>        normalized () const;    // does not modify *this
  148. -    Vec3<T>        normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  149. +    Vec3<T>        normalizedExc () const;
  150.      Vec3<T>        normalizedNonNull () const;
  151.  
  152.  
  153. @@ -619,11 +619,11 @@ template <class T> class Vec4
  154.      T               length2 () const;
  155.  
  156.      const Vec4 &    normalize ();           // modifies *this
  157. -    const Vec4 &    normalizeExc () throw (IEX_NAMESPACE::MathExc);
  158. +    const Vec4 &    normalizeExc ();
  159.      const Vec4 &    normalizeNonNull ();
  160.  
  161.      Vec4<T>         normalized () const;   // does not modify *this
  162. -    Vec4<T>         normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  163. +    Vec4<T>         normalizedExc () const;
  164.      Vec4<T>         normalizedNonNull () const;
  165.  
  166.  
  167. @@ -711,7 +711,7 @@ template <> const Vec2<short> &
  168.  Vec2<short>::normalize ();
  169.  
  170.  template <> const Vec2<short> &
  171. -Vec2<short>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  172. +Vec2<short>::normalizeExc ();
  173.  
  174.  template <> const Vec2<short> &
  175.  Vec2<short>::normalizeNonNull ();
  176. @@ -720,7 +720,7 @@ template <> Vec2<short>
  177.  Vec2<short>::normalized () const;
  178.  
  179.  template <> Vec2<short>
  180. -Vec2<short>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  181. +Vec2<short>::normalizedExc () const;
  182.  
  183.  template <> Vec2<short>
  184.  Vec2<short>::normalizedNonNull () const;
  185. @@ -735,7 +735,7 @@ template <> const Vec2<int> &
  186.  Vec2<int>::normalize ();
  187.  
  188.  template <> const Vec2<int> &
  189. -Vec2<int>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  190. +Vec2<int>::normalizeExc ();
  191.  
  192.  template <> const Vec2<int> &
  193.  Vec2<int>::normalizeNonNull ();
  194. @@ -744,7 +744,7 @@ template <> Vec2<int>
  195.  Vec2<int>::normalized () const;
  196.  
  197.  template <> Vec2<int>
  198. -Vec2<int>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  199. +Vec2<int>::normalizedExc () const;
  200.  
  201.  template <> Vec2<int>
  202.  Vec2<int>::normalizedNonNull () const;
  203. @@ -759,7 +759,7 @@ template <> const Vec3<short> &
  204.  Vec3<short>::normalize ();
  205.  
  206.  template <> const Vec3<short> &
  207. -Vec3<short>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  208. +Vec3<short>::normalizeExc ();
  209.  
  210.  template <> const Vec3<short> &
  211.  Vec3<short>::normalizeNonNull ();
  212. @@ -768,7 +768,7 @@ template <> Vec3<short>
  213.  Vec3<short>::normalized () const;
  214.  
  215.  template <> Vec3<short>
  216. -Vec3<short>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  217. +Vec3<short>::normalizedExc () const;
  218.  
  219.  template <> Vec3<short>
  220.  Vec3<short>::normalizedNonNull () const;
  221. @@ -783,7 +783,7 @@ template <> const Vec3<int> &
  222.  Vec3<int>::normalize ();
  223.  
  224.  template <> const Vec3<int> &
  225. -Vec3<int>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  226. +Vec3<int>::normalizeExc ();
  227.  
  228.  template <> const Vec3<int> &
  229.  Vec3<int>::normalizeNonNull ();
  230. @@ -792,7 +792,7 @@ template <> Vec3<int>
  231.  Vec3<int>::normalized () const;
  232.  
  233.  template <> Vec3<int>
  234. -Vec3<int>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  235. +Vec3<int>::normalizedExc () const;
  236.  
  237.  template <> Vec3<int>
  238.  Vec3<int>::normalizedNonNull () const;
  239. @@ -806,7 +806,7 @@ template <> const Vec4<short> &
  240.  Vec4<short>::normalize ();
  241.  
  242.  template <> const Vec4<short> &
  243. -Vec4<short>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  244. +Vec4<short>::normalizeExc ();
  245.  
  246.  template <> const Vec4<short> &
  247.  Vec4<short>::normalizeNonNull ();
  248. @@ -815,7 +815,7 @@ template <> Vec4<short>
  249.  Vec4<short>::normalized () const;
  250.  
  251.  template <> Vec4<short>
  252. -Vec4<short>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  253. +Vec4<short>::normalizedExc () const;
  254.  
  255.  template <> Vec4<short>
  256.  Vec4<short>::normalizedNonNull () const;
  257. @@ -830,7 +830,7 @@ template <> const Vec4<int> &
  258.  Vec4<int>::normalize ();
  259.  
  260.  template <> const Vec4<int> &
  261. -Vec4<int>::normalizeExc () throw (IEX_NAMESPACE::MathExc);
  262. +Vec4<int>::normalizeExc ();
  263.  
  264.  template <> const Vec4<int> &
  265.  Vec4<int>::normalizeNonNull ();
  266. @@ -839,7 +839,7 @@ template <> Vec4<int>
  267.  Vec4<int>::normalized () const;
  268.  
  269.  template <> Vec4<int>
  270. -Vec4<int>::normalizedExc () const throw (IEX_NAMESPACE::MathExc);
  271. +Vec4<int>::normalizedExc () const;
  272.  
  273.  template <> Vec4<int>
  274.  Vec4<int>::normalizedNonNull () const;
  275. @@ -1209,7 +1209,7 @@ Vec2<T>::normalize ()
  276.  
  277.  template <class T>
  278.  const Vec2<T> &
  279. -Vec2<T>::normalizeExc () throw (IEX_NAMESPACE::MathExc)
  280. +Vec2<T>::normalizeExc ()
  281.  {
  282.      T l = length();
  283.  
  284. @@ -1246,7 +1246,7 @@ Vec2<T>::normalized () const
  285.  
  286.  template <class T>
  287.  Vec2<T>
  288. -Vec2<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc)
  289. +Vec2<T>::normalizedExc () const
  290.  {
  291.      T l = length();
  292.  
  293. @@ -1701,7 +1701,7 @@ Vec3<T>::normalize ()
  294.  
  295.  template <class T>
  296.  const Vec3<T> &
  297. -Vec3<T>::normalizeExc () throw (IEX_NAMESPACE::MathExc)
  298. +Vec3<T>::normalizeExc ()
  299.  {
  300.      T l = length();
  301.  
  302. @@ -1740,7 +1740,7 @@ Vec3<T>::normalized () const
  303.  
  304.  template <class T>
  305.  Vec3<T>
  306. -Vec3<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc)
  307. +Vec3<T>::normalizedExc () const
  308.  {
  309.      T l = length();
  310.  
  311. @@ -2106,7 +2106,7 @@ Vec4<T>::normalize ()
  312.  
  313.  template <class T>
  314.  const Vec4<T> &
  315. -Vec4<T>::normalizeExc () throw (IEX_NAMESPACE::MathExc)
  316. +Vec4<T>::normalizeExc ()
  317.  {
  318.      T l = length();
  319.  
  320. @@ -2147,7 +2147,7 @@ Vec4<T>::normalized () const
  321.  
  322.  template <class T>
  323.  Vec4<T>
  324. -Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc)
  325. +Vec4<T>::normalizedExc () const
  326.  {
  327.      T l = length();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement