Giter Site home page Giter Site logo

Comments (7)

Lastique avatar Lastique commented on August 22, 2024 1

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.

Lastique avatar Lastique commented on August 22, 2024 1

Yes, the CI has passed. Thank you.

from lexical_cast.

Romain-Geissler-1A avatar Romain-Geissler-1A commented on August 22, 2024

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.

Lastique avatar Lastique commented on August 22, 2024

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.

apolukhin avatar apolukhin commented on August 22, 2024

Did the 515e598 fix the issue?

from lexical_cast.

Lastique avatar Lastique commented on August 22, 2024

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.

apolukhin avatar apolukhin commented on August 22, 2024

Should be fixed by now

from lexical_cast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.