File: dynexcspec.patch

package info (click to toggle)
mysql-connector-c%2B%2B 1.1.12-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,908 kB
  • sloc: cpp: 44,895; ansic: 2,114; php: 528; sql: 403; xml: 109; sh: 33; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Last-Update: 2018-12-12
Author: Rene Engelhard <rene@rene-engelhard.de>
Description: remove dynamic exception specifications. Breaking sith -std=c++17

--- a/cppconn/exception.h
+++ b/cppconn/exception.h
@@ -44,12 +44,12 @@
 {
 
 #if (__cplusplus < 201103L)
 #define MEMORY_ALLOC_OPERATORS(Class) \
-  void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); }  \
+  void* operator new(size_t size) { return ::operator new(size); }  \
   void* operator new(size_t, void*) throw(); \
   void* operator new(size_t, const std::nothrow_t&) throw(); \
-  void* operator new[](size_t) throw (std::bad_alloc); \
+  void* operator new[](size_t); \
   void* operator new[](size_t, void*) throw(); \
   void* operator new[](size_t, const std::nothrow_t&) throw(); \
   void* operator new(size_t N, std::allocator<Class>&);
 #else