Open GoogleCodeExporter opened 9 years ago
Please try passing the code through the pre-processor, format it, and run again
via the compiler. Where does it report the errors? (please post the code and
the error messages)
Original comment by vladlosev
on 4 Sep 2012 at 11:10
I did that and surprisingly when compiling the resulting preprocessed code, I
got new different compilation errors. A typical error message is something like
this:
error C2947: expecting '>' to terminate template-argument-list, found '>>'
I tried locating the source of this problem and found its root in
gtest-tuple.h. There are several templates and macros combinations that produce
source code like this (after preprocessing):
struct TupleElement<true, 0, tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>> {
typedef T0 type; };
There's a problem in T9>> which should be T9> > (that is, a space should be
added before the second '>')
I changed several templates in that file by padding the '>' and '<' with
spaces. The enclosed file contains my corrections.
After that, I managed to compile the preprocessed file, but I'm still having
compilation errors for the original file (the one before preprocessing).
That is a surprising phenomenon!
Any idea how to proceed from here?
Original comment by YalonLo...@gmail.com
on 5 Sep 2012 at 10:53
Attachments:
There is a tuple fix in the revision 622. Try again pre-processing and
compiling it again.
Original comment by vladlosev
on 6 Sep 2012 at 4:44
Hello,
Thanks for the prompt responsiveness.
I downloaded the fix for gtest-tuple.h and indeed I don't see the problems with
>> any longer.
However, the compilation failure of my test persists, but only in my raw file
and not in the preprocessed file. That is a surprising phenomenon!
Any idea what can lead to differences between the two?
Yalon
Original comment by YalonLo...@gmail.com
on 9 Sep 2012 at 6:16
Original issue reported on code.google.com by
YalonLo...@gmail.com
on 4 Sep 2012 at 11:57