Closed GoogleCodeExporter closed 9 years ago
We will track it in the issue 217. A workaround is suggested there.
Original comment by vladlosev
on 23 Nov 2009 at 11:59
A simple temporary solution to make his/her code to compile is to move the
tuple_element structure to the gtest_internal namespace as it is incompatible
with
the other definition in MSVC tuple header.
I fixed it by changing in gtest-tuple.h (line 741):
//--------------------------
template <int k, class Tuple>
struct tuple_element {
typedef typename gtest_internal::TupleElement<
k < (tuple_size<Tuple>::value), k, Tuple>::type type;
};
#define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
//--------------------------
to
//--------------------------
namespace gtest_internal {
template <int k, class Tuple>
struct tuple_element {
typedef typename TupleElement<
k < (tuple_size<Tuple>::value), k, Tuple>::type type;
};
} //namespace gtest_internal
#define GTEST_TUPLE_ELEMENT_(k, Tuple) typename gtest_internal::tuple_element<k,
Tuple >::type
//--------------------------
Original comment by radoslaw...@gmail.com
on 9 Jan 2010 at 2:26
this is a dup of issue 217, which is fixed in the
trunk.
Original comment by w...@google.com
on 9 Jan 2010 at 5:34
Original issue reported on code.google.com by
litgh...@gmail.com
on 23 Nov 2009 at 8:50