Menu

#69 classdesc doesn't handle -> return type decls

3.x
open
nobody
None
2019-10-28
2019-10-28
No

Example:
~~~
template <class t=""> struct has_empty
{
template <class x="">
static auto check(X x)->decltype(x.empty());
static std::false_type check(...);</class></class>

static constexpr const bool value = std::is_integral<decltype(check(std::declval<T>()))>::value;

};

outputs
 ~~~
std :: false_type(*TmpMemPtr_check2)(( ... )=&::schema2::has_empty<T>::check;

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB