Opened 5 years ago

Last modified 5 years ago

#13083 new Bugs

msvc c++14 permissive- unrecognizable template declaration

Reported by: Gunnar <LifePropertyLiberty@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.64.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (1)

comment:1 by anonymous, 5 years ago

have you solved the problem?

Note: See TracTickets for help on using tickets.