2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-26 07:02:12 +00:00

Dealing with the incomplete type error of GCC

This commit is contained in:
Raffi Enficiaud
2014-12-16 15:56:12 +01:00
parent 16621abd38
commit 852f656d00

View File

@@ -88,7 +88,7 @@ namespace ut_detail {
template <class T>
struct has_member_size {
private:
struct nil_t;
struct nil_t {};
template<typename U> static auto test(U*) -> decltype( boost::declval<U>().size() );
template<typename> static nil_t test(...);
@@ -99,7 +99,7 @@ namespace ut_detail {
template <class T>
struct has_member_begin {
private:
struct nil_t;
struct nil_t {};
template<typename U> static auto test(U*) -> decltype( boost::declval<U>().begin() );
template<typename> static nil_t test(...);
public: