mirror of
https://github.com/triqs/dft_tools
synced 2024-12-24 13:23:37 +01:00
update for xcode 5.1.1
- clang 3.4 on default Os X. - automatically in C++14 mode. - a little fix in clef (var >> ...) because of an apparent bug in auto detection in clang.
This commit is contained in:
parent
8f975234c6
commit
aa126e178b
@ -47,7 +47,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
|
||||
# does not always work ... To be fixed when clang 3.4 officially released and on OS X.
|
||||
if(NOT compiler_version VERSION_LESS "3.4")
|
||||
#set (compiler_is_c14 ON)
|
||||
set (compiler_is_c14 ON)
|
||||
endif()
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
|
||||
|
@ -380,7 +380,8 @@ namespace triqs { namespace clef {
|
||||
template<int ... N> ph_list<N...> var( placeholder<N> ...) { return {};}
|
||||
|
||||
template<typename Expr, int ... N>
|
||||
decltype(auto) operator >> (ph_list<N...>, Expr const & ex) { return make_function(ex, placeholder<N>()...);}
|
||||
auto operator >> (ph_list<N...> &&, Expr const & ex) ->decltype(make_function(ex, placeholder<N>()...)) { return make_function(ex, placeholder<N>()...);}
|
||||
// add trailing as a workaround around a clang bug here on xcode 5.1.1 (?)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------------
|
||||
* make_function
|
||||
|
Loading…
Reference in New Issue
Block a user