kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Warning about deprecated auto_ptr with gcc 4.7 #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When compiling yaml-cpp with gcc 4.7.2 (I did not test older versions), I get 
several warnings about auto_ptr being deprecated.

Original issue reported on code.google.com by Vladimir...@gmail.com on 5 Nov 2012 at 2:33

GoogleCodeExporter commented 8 years ago
Hmm. Unfortunately, the replacement for auto_ptr is unique_ptr, which is a 
C++11 feature, and I'm not ready to require C++11 for the library (I mean, 
there aren't any compilers yet that even fully support it, and there are plenty 
of yaml-cpp users on older compilers and can't upgrade).

Do you have a patch to silence the warning?

Original comment by jbe...@gmail.com on 5 Nov 2012 at 2:41

GoogleCodeExporter commented 8 years ago
How about a #define to use unqiue_ptr on C++11 compliant compilers?

Original comment by tent....@gmail.com on 27 Nov 2012 at 5:57

GoogleCodeExporter commented 8 years ago
Perhaps. But the semantics of unique_ptr and auto_ptr are a little different, 
so it wouldn't just be a drop-in replacement.

Original comment by jbe...@gmail.com on 27 Nov 2012 at 2:15

GoogleCodeExporter commented 8 years ago
This issue has moved to github: https://github.com/jbeder/yaml-cpp/issues/175

Original comment by jbe...@gmail.com on 30 Mar 2015 at 1:32