[MacPorts] #26460: boost: use BOOST_IOSTREAMS_USE_DEPRECATED

MacPorts noreply at macports.org
Mon Sep 13 13:35:01 PDT 2010


#26460: boost: use BOOST_IOSTREAMS_USE_DEPRECATED
--------------------------------------+-------------------------------------
  Reporter:  ryandesign@…             |       Owner:  adfernandes@…           
      Type:  enhancement              |      Status:  closed                  
  Priority:  Normal                   |   Milestone:                          
 Component:  ports                    |     Version:  1.9.1                   
Resolution:  invalid                  |    Keywords:                          
      Port:  boost                    |  
--------------------------------------+-------------------------------------
Changes (by adfernandes@…):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 The current build already defines `BOOST_IOSTREAMS_USE_DEPRECATED`. It is,
 however, not by default defined in the header. Thus applications need to
 explicitly define this before they include the boost header to get it.

 This is by design. It allows old code to be compiled by simply adding a
 `define` statement, but does not export the symbols by default to prevent
 their use in new code.

 {{{
 [...snip...]

         mkdir -p "bin.v2/libs/iostreams/build/darwin-4.2.1/release"

 darwin.compile.c++
 bin.v2/libs/iostreams/build/darwin-4.2.1/release/file_descriptor.o

     "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-
 inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC
 -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1
 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c
 -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/file_descriptor.o"
 "libs/iostreams/src/file_descriptor.cpp"

 darwin.compile.c++
 bin.v2/libs/iostreams/build/darwin-4.2.1/release/mapped_file.o

     "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-
 inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC
 -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1
 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c
 -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/mapped_file.o"
 "libs/iostreams/src/mapped_file.cpp"

 darwin.compile.c++ bin.v2/libs/iostreams/build/darwin-4.2.1/release/zlib.o

     "/usr/bin/g++-4.2"  -ftemplate-depth-128 -O3 -finline-functions -Wno-
 inline -Wall -dynamic -no-cpp-precomp -gdwarf-2 -fPIC
 -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1
 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -I"/opt/local/include" -c
 -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/zlib.o"
 "libs/iostreams/src/zlib.cpp"

 [...snip...]
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/26460#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list