Short answer, in C++11, dynamic exception specifications have been
deprecated.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3051.html
On June 4, 2019 at 2:28:57 PM, Nicky Perian (nickyper...@gmail.com) wrote:
This is a Kokua viewer question but, should apply to other third party
viewers and to LL's viewer-release once Linux is re-implemented.
Note: all tests pass on MacOs and VS2013.
Kokua's branch with no rlv is used as it is closest to viewer-release code.
My approach is to use skip(..) to bypass tests that do not work on a linux
build then once the viewer builds go back an attack each skipped test one
by one.
Test:
Building CXX object
llcorehttp/CMakeFiles/INTEGRATION_TEST_llcorehttp.dir/tests/test_allocator.cpp.o
Faiis with:
home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp: In
function ‘void* operator new(std::size_t)’:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47:
error: declaration of ‘void* operator new(std::size_t) throw
(std::bad_alloc)’ has a different exception specifier
#define THROW_BAD_ALLOC() throw(std::bad_alloc)
^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:155:39:
note: in expansion of macro ‘THROW_BAD_ALLOC’
void * operator new(std::size_t size) THROW_BAD_ALLOC()
^
In file included from
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:40:8:
error: from previous declaration ‘void* operator new(std::size_t)’
void * operator new(std::size_t size) throw (std::bad_alloc);
^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:51:47:
error: declaration of ‘void* operator new [](std::size_t) throw
(std::bad_alloc)’ has a different exception specifier
#define THROW_BAD_ALLOC() throw(std::bad_alloc)
^
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:161:41:
note: in expansion of macro ‘THROW_BAD_ALLOC’
void * operator new[](std::size_t size) THROW_BAD_ALLOC()
^
In file included from
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.cpp:27:0:
/home/bill/kokua-sl-np-sandbox/indra/llcorehttp/tests/test_allocator.h:41:8:
error: from previous declaration ‘void* operator new [](std::size_t)’
void * operator new[](std::size_t size) throw (std::bad_alloc);
^
The code for this test is the same as what is in viewer-release.
Distribution: gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
My thought was that MARCO expansion had changed with -c++11 or between
gcc-4.6 and 5.5.
Bottom line is, I need help.
Nicky
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting
privileges
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges