[Boost-bugs] [Boost C++ Libraries] #11896: compiler error in boost/detail/winapi/crypt.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11896: compiler error in boost/detail/winapi/crypt.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-08 11:22:35


#11896: compiler error in boost/detail/winapi/crypt.hpp
------------------------------+-----------------------
 Reporter: zimmermann@… | Owner: atompkins
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: uuid
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 compiler error in boost/detail/winapi/crypt.hpp in very special case
 using VS2012 (cl 11.0) for x64 build targeting Windows 2000

 - - -
 #define _WIN32_WINNT 0x0500

 #include <windows.h>

 #include <boost/uuid/uuid.hpp>

 #include <boost/uuid/uuid_generators.hpp>
 - - -

 Results in:

 Microsoft (R) C/C++-Optimierungscompiler Version 17.00.61030 for x64

 ...boost_1_60/boost/detail/winapi/crypt.hpp(102) : error C2733:
 'CryptReleaseContext' : error C2733 second C linkage of overloaded
 function not allowed
         C:\Program Files (x86)\Windows
 Kits\8.0\include\um\wincrypt.h(1128): See declaration of
 'CryptReleaseContext'
 ...boost_1_60/boost/uuid/seed_rng.hpp(115) : error C2668:
 'CryptReleaseContext': ambiguous call to overloaded function
         C:\Program Files (x86)\Windows
 Kits\8.0\include\um\wincrypt.h(1128): could be 'BOOL
 CryptReleaseContext(HCRYPTPROV,ULONG_PTR)'
         ...boost_1_60/boost/detail/winapi/crypt.hpp(102): or
 "boost::detail::winapi::BOOL_
 CryptReleaseContext(boost::detail::winapi::HCRYPTPROV_,boost::detail::winapi::DWORD_)"

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