Opened 10 years ago

#8466 new Patches

Boost.TR1 misdetects Visual C++ 2012's support as nonexistent

Reported by: Vaclav Slavik <vslavik@…> Owned by: John Maddock
Milestone: To Be Determined Component: TR1
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

fix-vc11-tr1-detection.patch (553 bytes ) - added by Vaclav Slavik <vslavik@…> 10 years ago.
patch to fix VC11 detection

Download all attachments as: .zip

Change History (1)

by Vaclav Slavik <vslavik@…>, 10 years ago

patch to fix VC11 detection

Note: See TracTickets for help on using tickets.