Skip to content

Conversation

@DavidSchuldenfrei
Copy link
Contributor

No description provided.

@DavidSchuldenfrei
Copy link
Contributor Author

@gennadiycivil @nicolastagliani Same as PR 1815, but to branch 1.8.x.

template <size_t I>
static typename AddReference<const typename ::std::tr1::tuple_element<
static_cast<int>(I), Tuple>::type>::type
I, Tuple>::type>::type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I explained in #1815 - that change was made for a reason. We can not just roll it back. You may want to consider using macros to only do this when this version of MSVC is used .

@DavidSchuldenfrei
Copy link
Contributor Author

@gennadiycivil Changed as requested.

@gennadiycivil gennadiycivil merged commit 792b475 into google:v1.8.x Sep 13, 2018
@DavidSchuldenfrei DavidSchuldenfrei deleted the 1.8.x/bugFix/CompileVS2013 branch September 16, 2018 06:28
@BrukerJWD
Copy link
Contributor

Thanks for fixing this! I searched quite some time until I found this here. So for others struggling with this error (which was also described in #1810) I try to point Google to this PR here. Error was:

error C2770: invalid explicit template argument(s) for 'const ::std::tr1::tuple_element<I,std::tuple<>>::type testing::internal::TuplePolicy::get(const std::tuple<> &)'

@DavidSchuldenfrei: Shouldn't we also fix the tuple_element a few lines above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants