After chopping hands, the fraud call came before the express delivery was received. How to improve the privacy and security of e-commerce>>>
Boosttestvs2013fatalerrorC1001
Boost test library provides a test suite UTF: unit test framework based on command line interface for unit test, which has the functions of unit test, memory leak detection and program running monitoring. According to the official website, boost supports many compilers. However, a fatal error will be reported when using the test module of boost in Visual Studio 2013, as shown in the figure below:
The output error information is as follows:
1>—— Bui ldstarted:Project :Test,Conf iguration:DebugWin32——
1> main.cpp
1> d:\boost_ 1_ 70_ 0\boost\type_ traits\common_ type.hpp(47):fatalerrorC1001:Aninternalerrorhasoccurredinthecompiler.
1>( compilerfile’msc1.cpp’,line1325)
1> Toworkaroundthisproblem,trysimplifyingorchangingtheprogramnearthelocationslistedabove.
1> PleasechoosetheTechnicalSupportcommandontheVisualC++
1> Helpmenu,oropentheTechnicalSupporthelpfileformoreinformation
==========B uild:0succeeded ,1failed,0up-to-date,0skipped==========
Locate the error file as common_ type.hpp:
It can be seen that the reason is cxx11, because vs2013 does not support c + + 11. Either upgrade vs2013 and patch it with cxx11, or use the following method:
So boost provides a macro definition to set whether it supports cxx11:1
BOOST_ NO_ CXX11_ TEMPLATE_ ALIASES
In project – > Properties-> C/C++-> It can be set in preprocessor
A fatal error will be reported when using the test module of boost in Visual Studio 2013, because vs2013 does not fully support cxx11 standard. With a macro definition, you can continue to use boost on compilers that do not support cxx11