Project

General

Profile

Actions

Bug #4836

open

Deprecated use of std::auto_ptr in WRandom

Added by Vincenzo Romano about 8 years ago. Updated about 8 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.

Actions #1

Updated by Vincenzo Romano about 8 years ago

Same goes for AuthModel

/home/enzo/Files/wt-3.3.5/src/Wt/Auth/AuthModel.C: In member function ‘virtual bool Wt::Auth::AuthModel::validate()’:
/home/enzo/Files/wt-3.3.5/src/Wt/Auth/AuthModel.C:159:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<AbstractUserDatabase::Transaction>
        ^

AuthWidget

/home/enzo/Files/wt-3.3.5/src/Wt/Auth/AuthWidget.C: In member function ‘void Wt::Auth::AuthWidget::oAuthDone(Wt::Auth::OAuthProcess*, const Wt::Auth::Identity&)’:
/home/enzo/Files/wt-3.3.5/src/Wt/Auth/AuthWidget.C:450:10: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     std::auto_ptr<AbstractUserDatabase::Transaction>
          ^

PasswordService

/home/enzo/Files/wt-3.3.5/src/Wt/Auth/PasswordService.C: In member function ‘virtual Wt::Auth::PasswordResult Wt::Auth::PasswordService::verifyPassword(const Wt::Auth::User&, const Wt::WString&) const’:
/home/enzo/Files/wt-3.3.5/src/Wt/Auth/PasswordService.C:92:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<AbstractUserDatabase::Transaction> t
        ^

RegistrationWidget

/home/enzo/Files/wt-3.3.5/src/Wt/Auth/RegistrationWidget.C: In member function ‘virtual void Wt::Auth::RegistrationWidget::doRegister()’:
/home/enzo/Files/wt-3.3.5/src/Wt/Auth/RegistrationWidget.C:227:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<AbstractUserDatabase::Transaction>
        ^
Actions

Also available in: Atom PDF