Remove use of deprecated behavior involving copy members

*  If any of the destructor, copy assignment or copy constructor
   are user-declared, both copy members should be user-declared,
   otherwise the compiler-generation of them is deprecated.
This commit is contained in:
Howard Hinnant
2017-09-05 15:23:47 -04:00
committed by seelabs
parent 16acba1636
commit 4e6c8d8b35
15 changed files with 56 additions and 11 deletions

View File

@@ -28,6 +28,11 @@
This module requires the @ref beast_sqlite external module.
*/
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
#endif
#include <ripple/basics/Log.h>
#include <ripple/core/JobQueue.h>
#define SOCI_USE_BOOST
@@ -138,4 +143,8 @@ std::unique_ptr <Checkpointer> makeCheckpointer (soci::session&, JobQueue&, Logs
#include "version.h"
#endif
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif

View File

@@ -24,6 +24,11 @@
header file and some macros to be defined.)
*/
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
#endif
#include <BeastConfig.h>
#include <ripple/basics/contract.h>
#include <ripple/core/SociDB.h>
@@ -57,3 +62,6 @@ void unload_all (){};
} // namespace dynamic_backends
} // namespace soci
#if defined(__clang__)
#pragma clang diagnostic pop
#endif

View File

@@ -17,6 +17,11 @@
*/
//==============================================================================
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
#endif
#include <BeastConfig.h>
#include <ripple/basics/contract.h>
@@ -271,3 +276,7 @@ std::unique_ptr <Checkpointer> makeCheckpointer (
}
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif