mirror of
https://github.com/google/googletest.git
synced 2025-04-14 00:40:36 +00:00
Gennadiy's comment. Reverts to previous code if not using Visual Studio 2013
This commit is contained in:
parent
a2a15f2cef
commit
e1d41f3f9f
1 changed files with 4 additions and 0 deletions
|
@ -983,7 +983,11 @@ struct TuplePolicy {
|
|||
|
||||
template <size_t I>
|
||||
static typename AddReference<const typename ::std::tr1::tuple_element<
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
I, Tuple>::type>::type
|
||||
#else
|
||||
static_cast<int>(I), Tuple>::type>::type
|
||||
#endif
|
||||
get(const Tuple& tuple) {
|
||||
return ::std::tr1::get<I>(tuple);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue