Just wanted to preface this bug report by saying that this is probably actually
a bug with older versions of gcc, and not necessarily something wrong with the
yaml-cpp code:
http://stackoverflow.com/questions/2361388/how-to-workaround-gcc-3-4-bug-or-mayb
e-this-is-not-a-bug
What steps will reproduce the problem?
1. Build yaml-cpp, or try to compile any code that includes the
yaml-cpp/node/convert.h header file.
What is the expected output? What do you see instead?
Compiling fails with a parse error, expected code to compile without error.
What version of the product are you using? On what operating system?
g++ version 3.3 fails to compile, and unfortunately I don't have any control
over the toolchain used to compile yaml-cpp, or the code that links to the
yaml-cpp library.
Please provide any additional information below.
I've attached a patch, which conditionally checks for GCC 3 or earlier, and
uses the keyword template so that the code compiles properly. I'm not sure
exactly which versions of GCC give an error, but GCC as late as version 3.3 for
sure does give an error with the current yaml-cpp code. Based on the
stackoverflow link I provided, it seems that GCC as late as at least version
3.4 give an error.
Original issue reported on code.google.com by jjj...@gmail.com on 19 Jul 2012 at 8:10
Original issue reported on code.google.com by
jjj...@gmail.com
on 19 Jul 2012 at 8:10Attachments: