[Boost-bugs] [Boost C++ Libraries] #11821: clang-cl fails using typeof.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11821: clang-cl fails using typeof.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-26 06:40:57

#11821: clang-cl fails using typeof.hpp
 Reporter: Yaron Keren <yaron.keren@…> | Owner: burbelgruff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: typeof
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
 clang-cl svn (r253440) fails to compile

 #include <boost/typeof/typeof.hpp>


 typeof_impl.hpp:150:31: error: template specialization or definition

       requires a template parameter list corresponding to the nested type
 'base_type' (aka 'msvc_extract_type<ID>')
             struct base_type::id2type // This uses nice VC6.5 and VC7.1
                    ~~~~~~~~~ ^


 this is due to BOOST_MSVC not defined.
 When this is worked around with -DBOOST_MSVC=1800, there is another
 failure in the same file:

 typeof_impl.hpp:125:20: error: explicit specialization of
       non-template struct 'id2type_impl'
             struct id2type_impl<true> //VC8.0 specific bugfeature
                    ^ ~~~~~~


 please see ideas to fix at


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