Hi recently I’ve installed Libtorch and I was able to use it in my new Visual Studio project without a problem. Currently I am trying to use Libtorch in an existing CUDA project. But I am having these strange errors when I include torch header and I couldn’t find any solution in the internet regarding to my problem. Does anyone have any idea what might be the cause of these errors?
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2833	'operator {' is not a recognized operator or type	DepthSensing	e:\research\libtorch\include\c10\util\flat_hash_map.h	1433	
Error	C2059	syntax error: 'newline'	DepthSensing	e:\research\libtorch\include\c10\util\flat_hash_map.h	1433	
Error	C2238	unexpected token(s) preceding ';'	DepthSensing	e:\research\libtorch\include\c10\util\flat_hash_map.h	1433	
Error	C2143	syntax error: missing ';' before 'const'	DepthSensing	e:\research\libtorch\include\c10\util\flat_hash_map.h	1433	
Error	C2833	'operator {' is not a recognized operator or type	DepthSensing	e:\research\libtorch\include\c10\util\order_preserving_flat_hash_map.h	1552	
Error	C2059	syntax error: 'newline'	DepthSensing	e:\research\libtorch\include\c10\util\order_preserving_flat_hash_map.h	1552	
Error	C2238	unexpected token(s) preceding ';'	DepthSensing	e:\research\libtorch\include\c10\util\order_preserving_flat_hash_map.h	1552	
Error	C2143	syntax error: missing ';' before 'const'	DepthSensing	e:\research\libtorch\include\c10\util\order_preserving_flat_hash_map.h	1552

My environment:
Windows 10
CUDA 10.1
Visual Studio 2017
C++ 14