Project

General

Profile

Bug #4836

Deprecated use of std::auto_ptr in WRandom

Added by Vincenzo Romano over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
03/30/2016
Due date:
% Done:

0%

Estimated time:
1.00 h

Description

While compiling Wt 3.3.5 with GCC v5 I have spotted this warning:

Building CXX object src/CMakeFiles/wt.dir/Wt/WRandom.o
/home/enzo/Files/wt-3.3.5/src/Wt/WRandom.C:70:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<RandomDevice> instance;
        ^
In file included from /usr/include/c++/5/memory:81:0,
                 from /home/enzo/Files/wt-3.3.5/src/Wt/WRandom.C:7:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^

While I think everything is still working in Wt, a code review would be nice.

Also available in: Atom PDF