duma-2.5.15-gcc6.patch 599 B

1234567891011121314151617181920212223
  1. --- duma_2_5_15/dumapp.cpp.old 2016-09-21 19:28:01.286332961 -0400
  2. +++ duma_2_5_15/dumapp.cpp 2016-09-21 19:28:06.722907238 -0400
  3. @@ -190,7 +190,9 @@
  4. * (11) = (a) ; ASW
  5. */
  6. void * DUMA_CDECL operator new( DUMA_SIZE_T size )
  7. +#if __cplusplus < 201103L
  8. throw(std::bad_alloc)
  9. +#endif
  10. {
  11. return duma_new_operator(size, EFA_NEW_ELEM, true DUMA_PARAMS_UK);
  12. }
  13. @@ -254,7 +256,9 @@
  14. * (21) = (a) ; AAW
  15. */
  16. void * DUMA_CDECL operator new[]( DUMA_SIZE_T size )
  17. +#if __cplusplus < 201103L
  18. throw(std::bad_alloc)
  19. +#endif
  20. {
  21. return duma_new_operator(size, EFA_NEW_ARRAY, true DUMA_PARAMS_UK);
  22. }