Opened 8 years ago
Closed 8 years ago
#10460 closed Bugs (fixed)
Compiler error due to looser throw specifier
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | move |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I'm running into errors when using C++ code generated by thrift and Boost 1.55.0 together. Errors of the form:
${BOOST_ROOT}/include/boost/move/core.hpp:70: error: looser throw specifier for 'boost::rv<T>::~rv() [with T = ...]' error: overriding 'virtual ... throw ()'
I'm not that familiar with the C++11 semantics involved, but some similar problems are discussed here:
http://stackoverflow.com/questions/6539009/gcc-exception-specification-of-default-destructor
http://stackoverflow.com/questions/24858417/using-c-boosts-format-object-as-an-exception-member
I was able to work around the problem by patching the header file as attached...
Attachments (1)
Change History (3)
by , 8 years ago
comment:1 by , 8 years ago
Summary: | Copmiler error due to looser throw specifier → Compiler error due to looser throw specifier |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks. Patch applied in develop, commit:
SHA-1: 78e032ccf052b92b7f8c051eda6c6c6420f4db45