3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +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:
Olivier Parcollet 2014-06-08 19:18:39 +02:00
parent 8f975234c6
commit aa126e178b
2 changed files with 3 additions and 2 deletions

View File

@ -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")

View File

@ -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