mirror of
https://github.com/triqs/dft_tools
synced 2025-01-12 14:08:24 +01:00
clef: correction of macro
- a strange issue, why was it not working ? - anyway, the separation is useless (was a try).
This commit is contained in:
parent
76e39c826f
commit
a503ddae26
@ -551,6 +551,13 @@ namespace triqs { namespace clef {
|
||||
* The lookup happens by ADL, so IT MUST BE USED IN THE triqs::lazy namespace
|
||||
* --------------------------------------------------------------------------------------------------- */
|
||||
#define TRIQS_CLEF_MAKE_FNT_LAZY(name) \
|
||||
struct name##_lazy_impl { \
|
||||
template <typename... A> auto operator()(A&&... a) const DECL_AND_RETURN(name(std::forward<A>(a)...)); \
|
||||
}; \
|
||||
template <typename... A> auto name(A&&... a) DECL_AND_RETURN(make_expr_call(name##_lazy_impl(), std::forward<A>(a)...));
|
||||
|
||||
|
||||
#define TRIQS_CLEF_MAKE_FNT_LAZY_BIS(name) \
|
||||
struct name##_lazy_impl { \
|
||||
template <typename... A> auto operator()(A&&... a) const -> decltype(name(std::forward<A>(a)...)); \
|
||||
}; \
|
||||
|
Loading…
Reference in New Issue
Block a user