[Boost-bugs] [Boost C++ Libraries] #6779: Scoped enums break linking compatibility between C++98 and C++11

Subject: [Boost-bugs] [Boost C++ Libraries] #6779: Scoped enums break linking compatibility between C++98 and C++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-10 15:24:53


#6779: Scoped enums break linking compatibility between C++98 and C++11
------------------------------+---------------------------------------------
 Reporter: andysem | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 The compiled part of Boost.FileSystem v3 uses scoped enums in its
 interface. This is the case with the copy_file function. This creates
 linking incompatibilities if Boost is compiled in C++98 and user's code in
 C++11 mode because in the former case scoped enums are emulated and thus
 generate a different name in the decorated function names. It's worth
 noting that typically binary distributions of Boost in Linux are built in
 C++98 mode, which complicates linking C++11 user's code.

 The suggested fix is to use either integers or traditional enums in the
 private library interface.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6779>
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:09 UTC