Re: [Boost-bugs] [Boost C++ Libraries] #11874: Compilation error with GCC4.6 in C++11 mode

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11874: Compilation error with GCC4.6 in C++11 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-01 10:22:36


#11874: Compilation error with GCC4.6 in C++11 mode
-------------------------------+-----------------------------------------
  Reporter: apolukhin | Owner: emildotchevski
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.60.0 | Severity: Regression
Resolution: | Keywords: c++11 exception type_traits
-------------------------------+-----------------------------------------

Comment (by kratz00@…):

 Thanks Emil for looking into this.

 This is test code (test.cpp), which reproduces the error:

 {{{
 #include <string>
 #include <boost/exception/error_info.hpp>
 #include <boost/exception/exception.hpp>
 #include <boost/exception/info.hpp>

 struct MyException: virtual boost::exception {};
 typedef boost::error_info<struct error_info_string, std::string>
 errorInfoString;

 int main(void) {
     throw MyException() << errorInfoString("doh");
     return 0;
 }

 }}}

 g++ -std=c++0x -I/home/buildhost/delete_me_kratz00/yapl/test/3rd-party-
 libraries/library-boost/i386-linux-gnu/include test.cpp

 {{{
 In file included from test.cpp:4:0:
 /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-
 boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of
 â€˜boost::error_info<error_info_string, std::basic_string<char> >’:
 test.cpp:10:49: instantiated from here
 /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-
 boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class
 boost::error_info<error_info_string, std::basic_string<char> >’ has no
 member named ‘value_’
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11874#comment:13>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC