3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00

clef : correction of TRIQS_CLEF_IMPLEMENT_LAZY_METHOD for clang 3.3

- there was a compilation pb with clang 3.3
- replace the decltype (with this !) by an explicit type
This commit is contained in:
Olivier Parcollet 2014-04-09 11:48:12 +02:00
parent 4ae4dfd42b
commit 2f2104e86e

View File

@ -573,7 +573,8 @@ namespace triqs { namespace clef {
} \ } \
}; \ }; \
template <typename... A> \ template <typename... A> \
auto name(A&&... a) DECL_AND_RETURN(make_expr_call(__clef_lazy_method_impl_##TY##_##name{}, *this, std::forward<A>(a)...)); auto name(A&&... a) const -> typename _result_of::make_expr_call<__clef_lazy_method_impl_##TY##_##name,const Obj&,A...>::type \
{ return make_expr_call(__clef_lazy_method_impl_##TY##_##name{}, *this, std::forward<A>(a)...);}
#define TRIQS_CLEF_IMPLEMENT_LAZY_CALL(...) \ #define TRIQS_CLEF_IMPLEMENT_LAZY_CALL(...) \
template <typename... Args> \ template <typename... Args> \