You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with C++17 enabled gcc throws the following warning:
[ 76%] Building CXX object CMakeFiles/utilities_unittest.dir/src/utilities_unittest.cc.obj
/usr/src/app/src/logging_unittest.cc: In function 'void TestDCHECK()':
/usr/src/app/src/logging_unittest.cc:575:3: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
auto_ptr<int64> sptr(new int64);
^~~~~~~~
In file included from /usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/bits/locale_conv.h:41:0,
from /usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/locale:43,
from /usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/iomanip:43,
from /usr/src/app/src/logging_unittest.cc:44:
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/include/c++/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
When compiling with C++17 enabled gcc throws the following warning:
For a full build output see the following log: https://travis-ci.org/NeroBurner/glog/jobs/399043400
With MSVC 2017 and C++17 enabled the build throws an error (full log https://ci.appveyor.com/project/NeroBurner/glog/build/1.0.111/job/dl21jws89k12c66u#L266)
edit: Just using
unique_ptr
fixes the warning and compilation for C++11 and above, but breaks the test for C++98 and belowThe text was updated successfully, but these errors were encountered: