Bug #93055 exception.h:98:2: error: ISO C++17 does not allow dynamic exception specificatio
Submitted: 2 Nov 2018 7:16 Modified: 2 Nov 2018 14:46
Reporter: M B Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S2 (Serious)
Version:1.1 OS:Ubuntu
Assigned to: CPU Architecture:Any

[2 Nov 2018 7:16] M B
Description:
I need to build with C++17. I have 2 systems running. One on MacOS and the other on Ubuntu 16.04. On the Mac I am using 1.1.11. However it does not look like there is 1.1.11 available for 16.04. It also appears that on github, the version 1.1 is woefuly out of date, so one cannot build the latest version.

I can no longer compile with C++17 due to:

/usr/local/include/cppconn/exception.h: At global scope:
/usr/local/include/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications
  MEMORY_ALLOC_OPERATORS(SQLException)
  ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications
  MEMORY_ALLOC_OPERATORS(SQLException)

Thjs looks fixed for C++14/C++17, however it is with version 1.1.11

How to repeat:
Compile with C++17

Suggested fix:
Update the github repo so we can build 1.1.11 or make available the tar for Ubuntu 16.04
[2 Nov 2018 14:46] M B
I realize now that there are tags used in the github repo. 

It would be nice however though to have a pre-build for 16.04. But not necessary as long as  one can build.