[Boost-bugs] [Boost C++ Libraries] #8466: Boost.TR1 misdetects Visual C++ 2012's support as nonexistent

Subject: [Boost-bugs] [Boost C++ Libraries] #8466: Boost.TR1 misdetects Visual C++ 2012's support as nonexistent
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-20 11:29:39


#8466: Boost.TR1 misdetects Visual C++ 2012's support as nonexistent
-----------------------------------------------+----------------------------
 Reporter: Vaclav Slavik <vslavik@…> | Owner: johnmaddock
     Type: Patches | Status: new
Milestone: To Be Determined | Component: TR1
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-----------------------------------------------+----------------------------
 The test in `boost/tr1/detail/config.hpp` indicates native TR1 support
 only if the `_HAS_TR1` macro is set and non-zero. This was set by VC2010,
 but 2012 no longer defines this symbol. Consequently, Boost's
 implementation is used and conflicts ensue.

 `_HAS_TR1` is a private symbol that shouldn't be checked according to
 this:
 http://lists.boost.org/Archives/boost/2011/06/182516.php

 Attached patch fixes this by also checking for VC11+ via `_MSC_VER`.

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