[Boost-bugs] [Boost C++ Libraries] #11546: Incorrect use of __declspec

Subject: [Boost-bugs] [Boost C++ Libraries] #11546: Incorrect use of __declspec
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-18 07:25:12


#11546: Incorrect use of __declspec
------------------------------+-------------------------
 Reporter: lcarreon@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 I compiled Boost 1.59.0 with Solaris Studio 12.4 in C++11 mode and I
 get the following error messages:

 "./boost/math/special_functions/detail/lanczos_sse2.hpp", line 26: Error:
 invalid __declspec syntax at "(".

 Obviously, the Solaris compiler shouldn't be encountering __declspec.
 Someone suggested modifying the line #15 in
 boost/math/special_functions/detail/lanczos_sse2.hpp containing:

   #if defined(__GNUC__) || defined(__PGI)

 to

   #if defined(__GNUC__) || defined(__PGI) || defined(__SUNPRO_CC)

 I'm not sure if this is the correct fix, but it does make sense.

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