[odb-users] Compilation errors

Tiago Macarios tiagomacarios at gmail.com
Sat Oct 1 19:57:08 EDT 2016


Hey Boris,

Awesome! Thanks for the fast reply. I updated to 2.5 (still playing with
it).

Now I am getting a warning on gcc:

libodb/odb/details/posix/thread.ixx: In destructor
‘odb::details::thread::~thread()’:
libodb/odb/details/posix/thread.ixx:17:35: warning: throw will always call
terminate() [-Wterminate]
           throw posix_exception (e);
                                   ^
libodb/odb/details/posix/thread.ixx:17:35: note: in C++11 destructors
default to noexcept

I changed that destructor noexcept(false) to keep the old behavior.

Tiago


On Sat, Oct 1, 2016 at 8:55 AM, Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Hi Tiago,
>
> Tiago Macarios <tiagomacarios at gmail.com> writes:
>
> > odb\details\shared-ptr\base.cxx(57): error C2220: warning treated as
> error
> > - no 'object' file generated
> > odb\details\shared-ptr\base.cxx(57): warning C4290: C++ exception
> > specification ignored except to indicate a function is not
> > __declspec(nothrow)
>
> Yes, we've fixed that in 2.5.0-a9:
>
> http://codesynthesis.com/~boris/tmp/odb/pre-release/a9/
>
> Boris
>


More information about the odb-users mailing list