[Boost-bugs] [Boost C++ Libraries] #13083: msvc c++14 permissive- unrecognizable template declaration

Subject: [Boost-bugs] [Boost C++ Libraries] #13083: msvc c++14 permissive- unrecognizable template declaration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-19 12:21:43


#13083: msvc c++14 permissive- unrecognizable template declaration
--------------------------------------------+----------------------------
 Reporter: Gunnar <LifePropertyLiberty@…> | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
  Version: Boost 1.64.0 | Severity: Problem
 Keywords: |
--------------------------------------------+----------------------------
 MS has come out with /permissive- (read more:
 https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/)

 This resulted in these errors:

 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(125):
 error C2988: unrecognizable template declaration/definition (compiling
 source file Wt\WGLWidget.C)
 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(133):
 note: see reference to class template instantiation
 'boost::type_of::msvc_extract_type<ID,T>' being compiled (compiling source
 file Wt\WGLWidget.C)
 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(125):
 error C2143: syntax error: missing ';' before '<' (compiling source file
 Wt\WGLWidget.C)
 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(125):
 error C2913: explicit specialization; 'boost::type_of::id2type_impl' is
 not a specialization of a class template (compiling source file
 Wt\WGLWidget.C)
 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(125):
 error C2059: syntax error: '<' (compiling source file Wt\WGLWidget.C)
 1>C:\Dev\Couloir\3pLibs\Boost\boost_1_64_0\boost/typeof/msvc/typeof_impl.hpp(126):
 error C2334: unexpected token(s) preceding '{'; skipping apparent function
 body (compiling source file Wt\WGLWidget.C)

 I searched and found this:
 https://svn.boost.org/trac10/ticket/4593

 So, I defined _MSC_EXTENSIONS

 But I got the same errors.

 Any help would be greatly appreciated.

--
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13083>
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-06-19 12:27:12 UTC