Re: [Boost-bugs] [Boost C++ Libraries] #7440: boost::filesystem compile error on solaris 10

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7440: boost::filesystem compile error on solaris 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-05 09:50:59


#7440: boost::filesystem compile error on solaris 10
------------------------------------------------+---------------------------
  Reporter: aleksandar.vukajlovic@… | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------------+---------------------------

Comment (by aleksandar.vukajlovic@…):

 Did you try it on solaris 10 , gcc 4.7.2 with -std=c++0x switch enabled ?
 gcc should not define __SunOS , you can try
 gcc -dM -E - < /dev/null
 it will print all predefined macros

 gcc claims that sun and __sun should be defined both , and they are if
 std=c++0x not used,
 but when using std=c++0x than only __sun is defined. I am not sure if this
 is proper behavior of gcc, but doc says that "__platform" macros like
 __sun , __linux and so on are newer than sun or linux. For fchmodat issue
 boost already uses
 && !(defined(linux) || defined(__linux) || defined(__linux__)) for linux
 platform and it works perfectly well.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7440#comment:3>
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:12 UTC