mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Mark some move and move-assignment ctors noexcept
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <ripple/basics/Buffer.h>
|
||||
#include <ripple/beast/unit_test.h>
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
|
||||
namespace ripple {
|
||||
namespace test {
|
||||
@@ -108,6 +109,9 @@ struct Buffer_test : beast::unit_test::suite
|
||||
// Check move constructor & move assignments:
|
||||
{
|
||||
testcase ("Move Construction / Assignment");
|
||||
|
||||
static_assert(std::is_nothrow_move_constructible<Buffer>::value, "");
|
||||
static_assert(std::is_nothrow_move_assignable<Buffer>::value, "");
|
||||
|
||||
{ // Move-construct from empty buf
|
||||
Buffer x;
|
||||
|
||||
Reference in New Issue
Block a user