Skip to content

Instantly share code, notes, and snippets.

View lrineau's full-sized avatar

Laurent Rineau lrineau

View GitHub Profile
// $ cl.exe -I c:/3rdPartyLibs/boost/boost_1_67_0 /EHsc -permissive- nonpermissive.cpp
// Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26131.1 for x64
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// nonpermissive.cpp
// nonpermissive.cpp(35): error C2760: syntax error: unexpected token 'constant', expected 'declaration'
// nonpermissive.cpp(35): note: This diagnostic occurred in the compiler generated function 'void X<T>::fct(void)'
// nonpermissive.cpp(38): note: see reference to class template instantiation 'X<T>' being compiled
#include <boost/variant/variant.hpp>