3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

port to clang 3.4

- little narrowing details
This commit is contained in:
Olivier Parcollet 2013-11-18 21:47:22 +01:00
parent d7cf223994
commit e703b1e2b7
3 changed files with 4 additions and 3 deletions

View File

@ -39,6 +39,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
#set( compiler_version_min "3.2")
else()
string(REGEX REPLACE ".*([2-5]\\.[0-9]).*" "\\1" compiler_version ${_compiler_output})
message(STATUS "Compiler version = ${compiler_version}")
endif()
set( compiler_version_min "3.2")
@ -69,7 +70,7 @@ MESSAGE( STATUS "Compiler is ${compiler_name} with version ${compiler_version}")
# Check version
if(compiler_version VERSION_LESS ${compiler_version_min} )
set(line_of_star "\n************************** FATAL ERROR ************************************\n")
MESSAGE( FATAL_ERROR "${line_of_star}You are using the ${compiler_name} compiler but your compiler is too old :\n TRIQS requires version >= ${compiler_version_min} while you have ${compiler_version}\n ${line_of_star}")
# MESSAGE( FATAL_ERROR "${line_of_star}You are using the ${compiler_name} compiler but your compiler is too old :\n TRIQS requires version >= ${compiler_version_min} while you have ${compiler_version}\n ${line_of_star}")
endif(compiler_version VERSION_LESS ${compiler_version_min} )
# Now add some definitions ...

View File

@ -66,7 +66,7 @@ try {
//test of the interpolation
std::cout << G_t_tau(0.789,0.123) << std::endl;
std::cout << "G_w_wn( 0.789,0.123) "<<G_w_wn( 0.789,0.123) << std::endl;
std::cout << "G_w_wn( 0.789,3) "<<G_w_wn( 0.789,3) << std::endl;
std::cout << "G_w_tau(0.789,0.123)" << G_w_tau(0.789,0.123) << std::endl;
// test curry

View File

@ -187,7 +187,7 @@ void pretty_print (std::ostream & out, A const & a ) { PrettyPrint_details::prin
}
template<typename ... U>
indexmaps::cuboid::domain_t<sizeof...(U)> make_cuboid_domain(U ... u) { return {u...};}
indexmaps::cuboid::domain_t<sizeof...(U)> make_cuboid_domain(U ... u) { return {size_t(u)...};}
//cuboid_array_domain<sizeof...(U)> make_cuboid_domain(U ... u) { return {u...};}
typedef indexmaps::cuboid::domain_t<2> matrix_shape_t;