Comments (7)
af5ce2a did not fix this, but made it worse:
In file included from ./boost/lexical_cast.hpp:31:0,
from libs/thread/src/pthread/thread.cpp:38:
./boost/lexical_cast/bad_lexical_cast.hpp:48:34: error: expected ';' at end of member declaration
./boost/lexical_cast/bad_lexical_cast.hpp:48:43: error: 'override' does not name a type
./boost/lexical_cast/bad_lexical_cast.hpp:53:27: error: expected ';' at end of member declaration
./boost/lexical_cast/bad_lexical_cast.hpp:53:29: error: 'override' does not name a type
./boost/lexical_cast/bad_lexical_cast.hpp:53:9: error: looser throw specifier for 'virtual boost::bad_lexical_cast::~bad_lexical_cast()'
/usr/include/c++/4.6/typeinfo:197:13: error: overriding 'virtual std::bad_cast::~bad_cast() throw ()'
In file included from ./boost/date_time/c_time.hpp:20:0,
from ./boost/date_time/time_clock.hpp:16,
from ./boost/thread/thread_time.hpp:9,
from ./boost/thread/lock_types.hpp:18,
from ./boost/thread/pthread/thread_data.hpp:12,
from ./boost/thread/thread_only.hpp:17,
from libs/thread/src/pthread/thread.cpp:11:
./boost/throw_exception.hpp: In instantiation of 'boost::wrapexcept<boost::bad_lexical_cast>':
./boost/throw_exception.hpp:165:28: instantiated from 'void boost::throw_exception(const E&) [with E = boost::bad_lexical_cast]'
./boost/lexical_cast/bad_lexical_cast.hpp:95:13: instantiated from 'void boost::conversion::detail::throw_bad_cast() [with S = std::basic_string<char>, T = unsigned int]'
./boost/lexical_cast.hpp:42:13: instantiated from 'Target boost::lexical_cast(const Source&) [with Target = unsigned int, Source = std::basic_string<char>]'
libs/thread/src/pthread/thread.cpp:550:83: instantiated from here
./boost/throw_exception.hpp:71:47: error: looser throw specifier for 'virtual boost::wrapexcept<boost::bad_lexical_cast>::~wrapexcept()'
./boost/exception/exception.hpp:484:13: error: overriding 'virtual boost::exception_detail::clone_base::~clone_base() noexcept (true)'
"g++-4.6" -std=c++0x -fvisibility-inlines-hidden -fPIC -m64 -pthread -O0 -fno-inline -Wall -g -fvisibility=hidden -march=corei7-avx -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -I"." -c -o "bin.v2/libs/thread/build/gcc-4.6/debug/cxxstd-0x-iso/instruction-set-sandy-bridge/threading-multi/visibility-hidden/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"
from lexical_cast.
Yes, the CI has passed. Thank you.
from lexical_cast.
Given that LexicalCast is targetting C++11, doesn't it imply that gcc 4.6 is no longer supported either (I mean, gcc 4.6 has only partial support of C++11) ?
The official Boost 1.82 release notes reads (https://www.boost.org/users/history/version_1_82_0.html):
This release (1.82) and the next (1.83) will be the last releases offering C++03 support for the above libraries and most of their dependencies.
The new baseline requirement for the above libraries, and for most of Boost, will be C++11. Since old compiler versions often implement C++11 only partially, due to missing support or bugs, what compilers are considered to meet the C++11 requirement may vary by library.
However, a general rule is that if a compiler does not recognize a C++11 keyword or syntax at all (e.g. use of noexcept, use of constexpr, or defining a =deleted function results in an immediate compile error), or if a compiler does not provide a required C++11 header at all (e.g. trying to include or fails), or the compiler provides a C++11 feature or a header that is completely unusable, this compiler is not considered a C++11 compiler.
This rules out, for instance, Microsoft Visual C++ before 14.0, or GCC before 4.8.
from lexical_cast.
It is up to the library maintainer to decide which compilers to support. Personally, I consider the more supported compilers the better, provided that the support is not too burdening.
As a maintainer of my libraries, which indirectly depend on Boost.LexicalCast, I would prefer to support gcc 4.6, given that's not much of a problem. Hence this report and the associated PR.
from lexical_cast.
Did the 515e598 fix the issue?
from lexical_cast.
I didn't test, but I'm sure it won't fix it as the compiler doesn't support override
. See the error message I posted above.
from lexical_cast.
Should be fixed by now
from lexical_cast.
Related Issues (20)
- Crash on Android using ARM architecture HOT 1
- Support for <boost/std>::filesystem::path HOT 4
- Resolve cyclic dependency between lexical_cast and math HOT 9
- One test from boost libraries failed to run after boost submodule throw_exception updated from 50c34d to 514355 HOT 3
- Rule breaking bool cast HOT 1
- `lexical_cast` doesn't recognize `std::string_view` or `boost::string_view` HOT 5
- GCC suggest-override warning HOT 2
- Clang Memory sanitizer triggers error in string -> float conversion HOT 2
- clang -fsanitize=undefined,integer error HOT 2
- lexical_cast throws std::bad_cast
- lexical_cast<unsigned> returns unexpected result when using with split_iterator<std::wstring::iterator> HOT 1
- Lexical_cast throws an error converting string "08" to int128_t HOT 1
- lexical_cast in boost 1.76.0 no longer compiles with pre-c++11 setup HOT 1
- Compilation fails when source is a volatile integer type and output is the same non-volatile type HOT 2
- Remove the workaround for llvm.15723? HOT 2
- BOOST_OVERRIDE missing HOT 2
- boost::filesystem::path with witespaces HOT 6
- Boost container support HOT 1
- Tests fail on macOS with Xcode clang.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexical_cast.